Created
September 18, 2019 12:53
-
-
Save cubapp/12bddb14f1535804be29c934280949ad to your computer and use it in GitHub Desktop.
Generate SHA-512 password hash
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
python -c "import random,string,crypt; | |
randomsalt = ''.join(random.sample(string.ascii_letters,8)); | |
print crypt.crypt('MySecretPassword', '\$6\$%s\$' % randomsalt)" | |
# $6$glmhpDPn$TnHWDtgh9ATjfUfEGUPoiFq1wATR0aHmDtDWaDOZWJmtDVsgsqmMriUQNcdV2pR1kA6tYQTIfMOYubdgBStEx. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment