note 28200 added to ref.mcrypt

From: Date: Sun, 05 Jan 2003 23:27:59 +0000
Subject: note 28200 added to ref.mcrypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-41703@lists.php.net to get a copy of this message
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."; } -- http://www.php.net/manual/en/ref.mcrypt.php http://master.php.net/manage/user-notes.php?action=edit+28200 http://master.php.net/manage/user-notes.php?action=delete+28200 http://master.php.net/manage/user-notes.php?action=reject+28200

« previous php.notes (#41703) next »