I was trying to decrypt values from the database that have been encrypted with VB6 using AES256 Rijndael - the vb6 algorithm was written by Phil Fresle.
The problem is, that some things have changed since vb6 and php. In vb6, I just used the function by passing the value I wanted to encrypt and the key for it. In addition, the key was not so long as the algorithm itself padded it up with zeros. In PHP, I now don't know how to decrypt the values that have been encrypted with the vb6 aes implementation by Phil Fresle. I tried the following without success:
function decodeAES256($password)
{
retu mcrypt_decrypt(MCRYPT_RIJNDAEL_256 , 'ThisIsSomeSecretKey' , $password , MCRYPT_MODE_ECB);
}
The passwords have been encrypted in vb6 by using the key "ThisIsSomeSecretKey" - ruing the code above will not decrypt to the correct password..?
