linux:security:password:mkpasswd
Table of Contents
mkpasswd
Description
Useful for generating passwords for /etc/shadow
and for use in Ansible playbooks.
Install
- Install
mkpasswd
which is included in thewhois
package:sudo apt install whois
Use
- Encrypt a string as a SHA-512 password:
mkpasswd --method=sha-512
- Encrypt a string as a yescrypt password:
mkpasswd --method=yescrypt
Links
linux/security/password/mkpasswd.txt · Last modified: 2021/11/09 23:46 by chuck