Archived Documentation
This documentation is no longer maintained and may contain outdated information. It is preserved for historical reference.
mkpasswd
Description
Useful for generating passwords for /etc/shadow and for use in Ansible playbooks.
Install
- Install
mkpasswdwhich is included in thewhoispackage: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