Authored by Dan Thomson

Password Hash Generation for Linux (Python >= 3.3)

Taken from and put here for convenience.

Replace "somesecret" with your password. This script can be run on the command line by placing the code inline like this:

$ python -c 'import crypt; print(crypt.crypt("somesecret", crypt.mksalt(crypt.METHOD_SHA512)))' 81 Bytes
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment