Hi Everyone,
When I try to execute the code below, I don't get any errors, but the data
is never decrypted. I have tried tons of different people's code, but to no
avail. Any help would be appreciated. Here is my code:

$data= mcrypt_ecb(MCRYPT_TripleDES, $key, $data, ENCRYPT);
echo "data: $data";

$data= mcrypt_ecb(MCRYPT_TripleDES, $key, $data, DECRYPT);
echo "data: $data";

And here is the output:

Warning: attempt to use an empty IV, which is NOT recommend in
../../includes/scripts/admin_functions.inc on line 52
data is: áyp)l)©>¤IÔNþ&ñ¸«Ø¼{j<{’Â]Ƹ«Ø¼{j<{’Â]Ƹ«Ø¼{j<{’
Â]Ƹ«Ø¼{j<{’Â]Ƹ«Ø¼{j<{’Â]Ƹ«Ø¼{j<{’Â]Æ—¶µßÛKš á×½ÄeDÜ
Warning: attempt to use an empty IV, which is NOT recommend in
../../includes/scripts/admin_functions.inc on line 55

data is: ©’WYbdù’
8žÊSQÝ›z-A|úyÕ»å™u$F›z-A|úyÕ»å™u$F›z-A|úyÕ»å™u$F›z-A|úyÕ»å™u$F›z-A|ú
yÕ»å™u$F›z-A|úyÕ»å™u$FÇVæˆËúMŒËÞ•=ÛÚ


Even when I try to use an IV, it still doesn't ever decrypt, or sometimes it
will give me an error about the key being too long.

Thanks very much in advance,

John

Reply To This Message




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to