Created
May 5, 2011 15:59
-
-
Save raykrueger/957311 to your computer and use it in GitHub Desktop.
Generating secure repeatable passwords with OpenSSL
This file contains hidden or 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 | |
# see http://www.openssl.org/docs/apps/passwd.html | |
DOMAIN=$1 | |
PEPPER=55e730a3 | |
SALT=`echo ${PEPPER}${DOMAIN} | shasum | cut -c 1-8` | |
openssl passwd -1 -salt $SALT | cut -d '$' -f 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With version 7f63f1 I switched to combining the domain with a fixed PEPPER value.