Skip to content

Instantly share code, notes, and snippets.

@devhero
Last active May 6, 2022 11:34
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 devhero/0274c650e19e9f47162cff2c4da42aa7 to your computer and use it in GitHub Desktop.
Save devhero/0274c650e19e9f47162cff2c4da42aa7 to your computer and use it in GitHub Desktop.
htpasswd #encrypt #sha1
htpasswd -nbBC 10 USER topsecret
# USER:$2y$10$vDtCxgJ4DIZ1itAAq6NDkedmaDFHlPdlpLY.EiEa3QBXHnH0oLatW
# used with traefik
echo $(htpasswd -nb USER topsecret) | sed -e s/\\$/\\$\\$/g
# USER:$$apr1$$rjtvYgpl$$urvcY8G0rd9ZpskQc0u28.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment