Skip to content

Instantly share code, notes, and snippets.

@Webklex
Created June 25, 2013 13:10
Show Gist options
  • Save Webklex/5858312 to your computer and use it in GitHub Desktop.
Save Webklex/5858312 to your computer and use it in GitHub Desktop.
PHP Equivalent für MySQL PASSWORD() Funktion
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