Hello, I am using some basic encryption which stopped working when I upgraded to 4.2.3. I am using Blowfish, with the CBC mode set as follows:
function encrypt_data($d)
{
srand();
$iv = mcrypt_create_iv (mcrypt_get_iv_size (MCRYPT_BLOWFISH,MCRYPT_MODE_CBC), MCRYPT_RAND);
$encrypted = mcrypt_encrypt(MCRYPT_BLOWFISH, "my key for this post", $d, MCRYPT_MODE_CBC,$iv);
return bin2hex($encrypted);
}
Basically, I can't decrypt my current data set, it stopped working. I think it has something to do with using the random initialization vector, but that has always worked before. Prior to upgrading to 4.2.3, I was seeding the srand() function, but started getting a warning after the upgrade, so I stopped.
Please help if possible.
Brian