Public
Authored by Dan Thomson

Password Hash Generation for Linux (Python >= 3.3)

Taken from https://unix.stackexchange.com/a/76337 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)))'
passwd-hash.py 81 Bytes
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment