Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 831 Bytes

README.md

File metadata and controls

41 lines (23 loc) · 831 Bytes

mksha

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.

Requires

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

Usage

Clone the git repo, cd to the directory and:

./mksha

Enter a password at the prompt, a SHA hash will be printed to stdout.

Author