note 85116 added to function.md5
| From: | joacorock at gmail dot com | Date: | Fri, 15 Aug 2008 13:01:33 +0000 |
| Subject: | note 85116 added to function.md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143522@lists.php.net to get a copy of this message | ||
Here is my Encryption function...
I saw some encryption functions who uses random numbers... thats not a good function...
Here is mine, using a Salt or not, and with some special chars to a better encrypt
<?php
//Function made by L2inside.org
function encrypt($v1,$v2=''){
$token = md5(sha1(crc32(md5(base64_decode($v1.$v2)).$v2)));
return $token;
}?>
First it was finished in sha1 but it is too long to have in a database with more than 100,000
records so i added the md5 encrypt to got a more small hash
----
Server IP: 69.147.83.197
Probable Submitter: 190.135.163.124
----
Manual Page -- http://www.php.net/manual/en/function.md5.php
Edit -- https://master.php.net/note/edit/85116
Del: integrated -- https://master.php.net/note/delete/85116/integrated
Del: useless -- https://master.php.net/note/delete/85116/useless
Del: bad code -- https://master.php.net/note/delete/85116/bad+code
Del: spam -- https://master.php.net/note/delete/85116/spam
Del: non-english -- https://master.php.net/note/delete/85116/non-english
Del: in docs -- https://master.php.net/note/delete/85116/in+docs
Del: other reasons-- https://master.php.net/note/delete/85116
Reject -- https://master.php.net/note/reject/85116
Search -- https://master.php.net/manage/user-notes.php