Created
January 13, 2018 11:16
-
-
Save narate/f41b4d2c5c2eab0c381d706489a8f781 to your computer and use it in GitHub Desktop.
Generate basic auth username and password.
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 | |
USERNAME=$1 | |
printf "$USERNAME:`openssl passwd -apr1`\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment