note 101711 deleted from function.md5 by joey

From: Date: Sun, 17 Jul 2011 08:38:14 +0000
Subject: note 101711 deleted from function.md5 by joey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181598@lists.php.net to get a copy of this message
Note Submitter: harrisjason10 at yahoo dot com ---- Here is a good encryption function im building for my custom CMS and decided to share with the community <?php function eliteEncrypt($string) { // Create a salt $salt = md5($string."%*4!#$;\.k~'(_@"); // Hash the string $string = md5("$salt$string$salt"); return $string; } ?> If you are like me, and prefer sha1() hashing, just change "md5" to "sha1".

« previous php.notes (#181598) next »