Skip to content

Instantly share code, notes, and snippets.

@chanakasan
Last active August 29, 2015 13:58
Show Gist options
  • Save chanakasan/10229368 to your computer and use it in GitHub Desktop.
Save chanakasan/10229368 to your computer and use it in GitHub Desktop.
<?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