note 43655 deleted from function.md5 by mazzanet
| From: | mazzanet@php.net | Date: | Mon, 03 Oct 2005 09:14:06 +0000 |
| Subject: | note 43655 deleted from function.md5 by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96247@lists.php.net to get a copy of this message | ||
Note Submitter: kristian at amazing dot as
----
If the string you are encrypting via md5() is short, is it very easy to break via brute forcers.
This problem can be solved by making your own encryption with md5() and strrev() several times.
<?php
function md5x($var) {
return strrev(md5(md5(strrev(md5("$var")))));
}
?>
Use your imagination to make your own encryption this way. Just make sure you use the same
encryption everywhere on your site, so the output will be the same.