User Tools

Site Tools


linux:security:password:mkpasswd

This is an old revision of the document!


Table of Contents

mkpasswd


Description

Encrypts passwords.

Useful for generating passwords for /etc/shadow and for use in Ansible playbooks user module.


Install

  • Install mkpasswd which is included in the whois 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

linux/security/password/mkpasswd.1636501526.txt.gz · Last modified: by chuck