note 28200 deleted from ref.mcrypt by derick

From: Date: Fri, 25 Apr 2003 19:12:00 +0000
Subject: note 28200 deleted from ref.mcrypt by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-47109@lists.php.net to get a copy of this message
[Editor's Note] Please remember that the decrypted data may be longer than the original data due to the data padding that can take place. Don't forget when using custom crypt functions (as above) for storing passwords: $a = 'Both should be equal.'; $b= encrypt($a, $key); $c= decrypt($b, $key); if ($a!=$c) { echo "Comparision doesn't work."; } $a = 'Both should be equal.'; $b= encrypt($a, $key); $c= (string)(decrypt($b, $key)); if ($a==$c) { echo "Works fine."; }

« previous php.notes (#47109) next »