APG: Password generator-Linux Enterprise Application-Linux server application information. For more information, see. To ensure security, we often use passwords in many places. If the password is too simple, the security will be compromised. If you want to set a complicated password and are afraid of brainpower, why not use the password generation tool to help you. The automatic Password Generator ("APG" for short) is such a dedicated Password Generator.
Install APG
The APG tool is available in most software repositories of Linux releases. Therefore, to install it, you only need to use the package management tool of the release to automatically obtain it.
Archlinux: # pacman-S apg
Debian/Ubuntu: # apt-get install apg
Use APG
If you run apg without adding any parameters in the terminal, six random passwords will be generated by default:
The above is the result of executing apg in my system.
To increase the password difficulty, you can add some parameters to the apg:
M-refers to the minimum number of digits used to generate the password. The default value is 8.
M mode-used to generate a password, such as a password containing uppercase/lowercase letters, numbers, and special characters
For example, to generate a 16-bit password that must contain uppercase letters, lowercase letters, numbers, and special characters, run:
For more detailed usage of apg, you can use man apg.
Suggestions
To generate a password, consider the "84" rule, that is, the password must contain at least eight digits, plus at least one uppercase letter, one lowercase letter, one digit, and one special character.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.