Given the password correct horse battery staple, we would like to bcrypt-hash it.

Through 20 years of effort, we've successfully trained everyone to use passwords that are hard for humans to remember, but easy for computers to guess.

XKCD Courtesy of Randall Munroe

Here’s one way to do so via the command line:

$ htpasswd -nbBC 10 "" 'correct horse battery staple' | tr -d ':\n' | sed 's/$2y/$2a/'

…which yields:


You could verify it matches e.g. via

Context: ArgoCD expects a bcrypt-hashed password in its config file.