note 50643 deleted from function.md5 by nlopess

From: Date: Sun, 23 Apr 2006 14:20:30 +0000
Subject: note 50643 deleted from function.md5 by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109164@lists.php.net to get a copy of this message
Note Submitter: whateverever ---- hkmaly has updated his crypt/decrypt code at http://adela.karlin.mff.cuni.cz/~hkmaly/crypt_using_md5.php.txt and made a sha1 version. Note that if you crypt_md5 twice, you get back the first 16 characters. <? $time= 1110039695; // time(); $key= "secret key"; print crypt_md5(crypt_md5('This is a very long etc.',$key,$time),$key,$time); ?> Produces: This is a very lfkãµìÄcÜ The same is true for decrypt_md5, and for the _sha1 versions. (The $time parameter is new. Remove it if you're using the old code.) You can assess whether this would be a problem in your own situation.

« previous php.notes (#109164) next »