-
-
Save grim-reapper/59def7c8448a0a14884a017017cbfdb1 to your computer and use it in GitHub Desktop.
Simple Hashing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function hasher($password, $salt){ | |
| $result = base64_encode(hash('md5', $password.$salt)); | |
| $result = substr($result, 5, -5); | |
| return strrev($result); | |
| } | |
| //Example | |
| print hasher('myPassword', time()); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment