Last active
August 22, 2016 18:18
-
-
Save TiGR/9db1a53cce868f578baf to your computer and use it in GitHub Desktop.
htpasswd entries 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 -p 'Username: ' name && read -s -p 'Password: ' pass && (>&2 echo) && echo "$name:$(openssl passwd -apr1 $pass)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: