Last active
February 11, 2016 18:38
-
-
Save zuzkins/cad0c1a62ba5c257ca16 to your computer and use it in GitHub Desktop.
wrapper which hashes given password with sha512 and 150k iterations and random salt. The result is suited to be used with glibc crypt function (htpasswd files) on systems, which do not have blowfish patch in glibc (eg. ubuntu)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
mkpasswd -m sha-512 -R 150000 -s -S $(openssl rand -hex 32 | cut -b 1-16) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage: