Skip to content

Instantly share code, notes, and snippets.

@prehensilecode
Created April 20, 2023 14:03
Show Gist options
  • Save prehensilecode/c2b66b217fffadfba2703fc8411ad2a5 to your computer and use it in GitHub Desktop.
Save prehensilecode/c2b66b217fffadfba2703fc8411ad2a5 to your computer and use it in GitHub Desktop.
Generating a Linux password hash (aka encrypted password)
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