mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-30 17:33:50 +08:00
openssl-passwd: add page (#23567)
* openssl-passwd: add page --------- Co-authored-by: Meinard Francisco <44516102+znarfm@users.noreply.github.com> Co-authored-by: Fazle Arefin <1625934+FazleArefin@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# 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 {{salt_string}}`
|
||||
|
||||
- Generate password hash in APR1 and display the password and the hash:
|
||||
|
||||
`openssl passwd -apr1 -table`
|
||||
|
||||
- Generate password hash from `stdin`:
|
||||
|
||||
`echo -n "{{password}}" | openssl passwd {{-apr1}} -stdin`
|
||||
Reference in New Issue
Block a user