creating a password hash for /etc/shadow (sha512,sha256,md5)
Submitted by thomas on Fri, 08/31/2012 - 15:21I'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.