Created
June 15, 2012 10:15
-
-
Save prasmussen/2935739 to your computer and use it in GitHub Desktop.
Smartos shadow hash generator
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 | |
read -s -p "New Password: " password | |
echo | |
read -s -p "Re-enter new Password: " confirm | |
echo | |
if [ "$password" != "$confirm" ]; then | |
echo "Password don't match!" | |
exit 1 | |
fi | |
/usr/lib/cryptpass "$password" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment