note 101711 added to function.md5
| From: | harrisjason10 at yahoo dot com | Date: | Thu, 06 Jan 2011 10:27:49 +0000 |
| Subject: | note 101711 added to function.md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175486@lists.php.net to get a copy of this message | ||
Here is a good encryption function im building for my custom CMS and decided to share with the
community
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".
----
Server IP: 69.147.83.197
Probable Submitter: 68.7.172.213
----
Manual Page -- http://www.php.net/manual/en/function.md5.php
Edit -- https://master.php.net/note/edit/101711
Del: integrated -- https://master.php.net/note/delete/101711/integrated
Del: useless -- https://master.php.net/note/delete/101711/useless
Del: bad code -- https://master.php.net/note/delete/101711/bad+code
Del: spam -- https://master.php.net/note/delete/101711/spam
Del: non-english -- https://master.php.net/note/delete/101711/non-english
Del: in docs -- https://master.php.net/note/delete/101711/in+docs
Del: other reasons-- https://master.php.net/note/delete/101711
Reject -- https://master.php.net/note/reject/101711
Search -- https://master.php.net/manage/user-notes.php