Little Python script to create SHA-512 hashes compatible with Linux shadow passwords. The hashes can be used in Puppet manifests or Kickstart configs.
Right now it has no options and only does SHA-512.
python-passlib
Red Hat (requires EPEL in RHEL/CentOS):
yum install python-passlib
Debian-based (in Debian wheezy and squeeze-backports, and Ubuntu precise):
apt-get install python-passlib
Cheeseshop:
pip install passlib
Or:
easy_install passlib
Clone the git repo, cd to the directory and:
./mksha
Enter a password at the prompt, a SHA hash will be printed to stdout.
- Anton Cohen [email protected]
- Source
- Homepage
- @antoncohen