openssl passwd
Generate password hash. More information: https://docs.openssl.org/master/man1/openssl-passwd/.
- Generate password hash in SHA256 algorithm (Linux only):
openssl passwd -5
- Generate password hash in APR1 algorithm:
openssl passwd -apr1
- Generate password hash in APR1 algorithm with salt:
openssl passwd -apr1 -salt
- Generate password hash in APR1 and display the password and the hash:
openssl passwd -apr1 -table
- Generate password hash from
stdin:
echo -n "" | openssl passwd -stdin
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
