Created
April 20, 2023 14:03
-
-
Save prehensilecode/c2b66b217fffadfba2703fc8411ad2a5 to your computer and use it in GitHub Desktop.
Generating a Linux password hash (aka encrypted password)
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
| python3 -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass(), crypt.mksalt(crypt.METHOD_SHA512)))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment