Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 788 Bytes

hash-password-bcrypt.md

File metadata and controls

40 lines (34 loc) · 788 Bytes
aliases 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
2024-09-23 12:04:20 -0700
false
20230111084941
attachments/20230111084941.html
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