aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
cli |
public |
2023-01-11 00:49:41 -0800 |
2024-09-23 12:04:20 -0700 |
false |
20230111084941 |
|
false |
false |
|
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