Hash a Password using bcrypt

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