CentOS 7.x mkpasswd

From Notes_Wiki

Home > CentOS > CentOS 7.x > Security Tools > CentOS 7.x mkpasswd

mkpasswd can be used to generate random passwords. It is critical to have different passwords for different services so that if any one of them is compromised, the others are not affected.

To create a sufficiently complex 20 character long password with 4 special characters use:

mkpasswd -l 20 -s 4

To create a simple 6 character long password without any special characters use:

mkpasswd -l 6 -s 0

In case mkpasswd is not available for particular Linux distribution then other tools such as 'apg' can be used.

Refer: https://www.makeuseof.com/tag/5-ways-generate-secure-passwords-linux/



Home > CentOS > CentOS 7.x > Security Tools > CentOS 7.x mkpasswd