Skip to content

Instantly share code, notes, and snippets.

@gnilchee
Created January 14, 2016 21:58
Show Gist options
  • Save gnilchee/c65701e192df89deb0de to your computer and use it in GitHub Desktop.
Save gnilchee/c65701e192df89deb0de to your computer and use it in GitHub Desktop.
mkpass (for shadow hash making)
#!/usr/bin/env python
from passlib.hash import sha512_crypt
import getpass
print("Making a SHA512 Password Hash for Shadow...")
print(sha512_crypt.encrypt(getpass.getpass()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment