Post

Openssl generate password hash

Openssl generate password hash

Useful when you need to generate an htpasswd entry or test password hash verification without standing up a full web server. I use this in automated provisioning scripts where I need to pre-hash credentials before dropping them into config files.

1
2
3
$ openssl passwd -1 "password text"

$1$UYbKFuQM$LKpXxnL312ziKrKO9lmPG0
This post is licensed under CC BY 4.0 by the author.