creating a password hash for /etc/shadow (sha512,sha256,md5)

By thomas, 31 August, 2012

I've run into this enough times that I thought I'd write a little script to do the work for me.
It's just a simple one line call to python, but I wrapped it with some argument parsing.

It's a python script that takes a password and returns the salted sha512 hash by default. sha256 and md5 can be specified with switches.

The script is hosted at github here.