Created
October 30, 2014 22:28
-
-
Save gene1wood/973a1c20606cbfc7dea6 to your computer and use it in GitHub Desktop.
One line python command to generate MySQL hashed password
This file contains 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
echo "mypassword" | python -c "import hashlib; import sys; m = hashlib.sha1(); m.update(sys.stdin.read()); n = hashlib.sha1(); n.update(m.digest()) ; print('*' + n.hexdigest().upper())" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment