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:

$2a$10$HKSHfLu4l7TvOmnLkhUngu2U1pJUUw7hEU0LE1iN84S09fJsZowHm

You could verify it matches e.g. via https://bcrypt-generator.com/.

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