In order to obtain security guarantees, we have many, many places will be used password. If the password is set too simple, the security will be greatly reduced. I want to set a complex password, afraid of mental costs, why not use a password generation tool to help you. Automated Password Generator (referred to as "APG") is such a special password generator.
APG This tool has in most Linux distributions depot. Therefore, to install it, you simply use the distribution's package management tools can be automatically acquired.
Archlinux: # pacman -S apg
Debian / Ubuntu: # apt-get install apg
Apg executed with no arguments in a terminal, will generate six random default passwords:
The above is the result of the implementation of apg in my system.
In order to increase the difficulty of the password, you can add some parameters to apg:
m - refers to the minimum number of bits to generate a password, the default is 8
M mode - what mode to generate passwords, such as password contains uppercase and lowercase letters, numbers, special characters, etc.
For example, suppose we want to generate a 16-bit and password must contain uppercase letters, lowercase letters, numbers and special characters, you can do:
apg -M SNCL -m 16
The results are as follows:
cevyet = ojRodreb3
About apg more detailed usage can man apg.
Generated passwords may wish to consider "84" rule that the password at least eight, plus at least one uppercase letter, one lowercase letter, one number and one special character.
Original link: http: //linuxtoy,org/archives/apg.html