Skip to content

Instantly share code, notes, and snippets.

@narate
Created January 13, 2018 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save narate/f41b4d2c5c2eab0c381d706489a8f781 to your computer and use it in GitHub Desktop.
Save narate/f41b4d2c5c2eab0c381d706489a8f781 to your computer and use it in GitHub Desktop.
Generate basic auth username and password.
#!/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