Skip to content

Instantly share code, notes, and snippets.

@dol
Created February 10, 2011 09:18
Show Gist options
  • Save dol/820188 to your computer and use it in GitHub Desktop.
Save dol/820188 to your computer and use it in GitHub Desktop.
Generate MySQL 4.1 compartible password hash without PASSWORD() function
SELECT CONCAT('*', UPPER(CONVERT(SHA1(UNHEX(SHA1('yourPassword'))) USING latin1)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment