note 85116 deleted from function.md5 by tularis
| From: | tularis@php.net | Date: | Thu, 14 Jul 2011 22:50:22 +0000 |
| Subject: | note 85116 deleted from function.md5 by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181528@lists.php.net to get a copy of this message | ||
Note Submitter: joacorock at gmail dot com
----
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