Three password generation tools under Linux and three linux generation tools
Http://code.csdn.net/news/2820879
It is not easy to come up with a password that is hard to crack and easy to remember. When I set a new password for my computer or register a new account online, my head is blank when I need to enter the password. However, there are several password generation tools in Linux that can be used. Each tool has its own way to generate a secure password.
1. pwgen
The password generated by pwgen is easy to remember and secure. Technically, passwords that are easy to remember are not more secure than randomly generated passwords. However, in most cases, the password generated by pwgen is safe enough, except for those requiring high security levels such as online banking passwords. The advantage of using easy-to-remember passwords is that you will not write them down or store them somewhere on your computer. This is inherently insecure.
Install pwgen and enter it in the terminal window (applicable to the Debian Linux system ):
sudo apt-get install pwgen
Run pwgen without any parameters. The screen-filled password will be output. You can select a password and clear the screen. In this way, the password is generated because someone is behind you and does not know which one you choose.
Run pwgen and enter:
pwgen
After selecting the password, enter it on the terminal. ClearYou can "clear" the terminal window content.
If you are sure there is no one, you can use the "-1" parameter to allow pwgen to generate only one password.
pwgen -1
If you want to generate a completely random password, use the "-s" parameter.
pwgen -1 -s
To increase the password security level, you can use special characters (such as exclamation marks and commas) in the password ). The "-y" parameter allows the generated password to contain at least one special character.
pwgen -1 -s -y
The pwgen command has more interesting parameters:
- -0: the password does not contain numbers.
- -B, -- ambiguous: the password does not contain confusing characters, such as "1" and "l", "0", and "O ".
- -V, -- no-vowels: the password does not include a vowel or a number that may be mistaken for a vowel.
2. makepasswd
Makepasswd and pwgen work in a similar way, but the generated password is hard to remember. All passwords are randomly generated, and makepasswd is more secure than pwgen.
Install makepasswd and enter:
sudo apt-get install makepasswd
Generate a password and enter:
makepasswd
Generate five passwords, each containing at least 10 characters:
makepasswd --count 5 --minchars 10
You can also specify a string to generate a random password. This may be useful in generating PIN. For example, to generate a four-bit PIN, enter:
makepasswd --string 1234567890 --chars 4
3. passwordmaker
Passwordmaker is different from pwgen and makepasswd. It was originally an extension of IE, Firefox and other browsers. Passwordmaker-cli is the command line version of passwordmaker. Install passwordmaker-cli and enter:
sudo apt-get install passwordmaker-cli <br>
When using passwordmaker, you need to enter a domain name (URL) and master password. passwordmaker will use the input information to generate a unique password for this URL.
passwordmaker --url maketecheasier.com <br>
Enter a safe and easy-to-remember password after the prompt. I entered "FC (QI-Ge ".
The magic of passwordmaker is that if you use the same URL and master password to run passwordmaker again, you will get the same result as the previous one. This means that you can get rid of the hard nut to crack the password. When you forget the password, you only need to enter the corresponding URL and the master password to run passwordmaker again, and the URL and master password are easier to remember.
The following example shows the result of running passwordmaker twice. Note that the two passwords are the same.
Remember: always ensure that your password is secure. Do not use an overly explicit password, such as "password", "123456", and "qwerty.