Created
June 25, 2013 13:10
-
-
Save Webklex/5858312 to your computer and use it in GitHub Desktop.
PHP Equivalent für MySQL PASSWORD() Funktion
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
function mysql_41_password($in){ | |
$p = sha1($in,true); | |
$p = sha1($p); | |
return "*".strtoupper($p); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment