Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 756 Bytes

hash-password-bcrypt.md

File metadata and controls

35 lines (30 loc) · 756 Bytes
aliases archive_links category classification date date_modified draft id image links local_archive_links pinned print series tags title type
hash-password-bcrypt
cli
public
2023-01-11 00:49:41 -0800
2023-01-11 00:49:41 -0800
false
20230111084941
false
false
bcrypt
hash
password
caddy-security
Hash a Password using bcrypt
tech-note

It's surprisingly not that straightforward to find a tool to create a bcrypt hashed password.

htpasswd -bnBC 10 "" <password> | tr -d ':\n' | sed 's/$2y/$2a/'

To do it with a password prompt:

htpasswd -nBC 10 jprice | tr -d ':\n' | sed 's/$2y/$2a/'

More on StackExchange