Mcrypt Coding Problem

From: Date: Fri, 20 Jul 2001 07:27:16 +0000
Subject: Mcrypt Coding Problem
Groups: php.general 
Request: Send a blank email to php-general+get-58843@lists.php.net to get a copy of this message
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

« previous php.general (#58843) next »