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)>IN&ؼ{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
8SQݛz-A|yջu$Fz-A|yջu$Fz-A|yջu$Fz-A|yջu$Fz-A|
yջu$Fz-A|yջu$FVMޕ=


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