Last active
August 29, 2015 13:58
-
-
Save chanakasan/10229368 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Password hash generator | |
* | |
* @static | |
* @param string $password | |
* @return string | |
*/ | |
public static function passwordHash ($password) | |
{ | |
$password = strtolower($password); | |
return md5( | |
str_repeat( | |
md5($password) . strrev($password) . sha1($password), | |
strlen($password) | |
) | |
); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment