Create strong passwords easily and safely
It is the best way to have different strong passwords on different websites using only your personal master password.
How it works
Supposedly you want a strong password for forum.mxlinux.org open the terminal and give the command:
strongpw forum.mxlinux.org
Αfter asks you Enter secret: where you put your personal master code. Let assume that the secret personal master code to use is mycode then:
$ strongpw forum.mxlinux.org
Enter secret: mycode
The code generated by combining forum.mxlinux.org and mycode is:
oHwQhgKMihjnu4FwzfsJ
where it is used for forum.mxlinux.org. So if you forget your password forum.mxlinux.org, open the terminal and the combination forum.mxlinux.org and mycode finds again it.
Thereby having the mycode password and the name of the site you are interested you make a new different strong passwords for each website separately.
With this code process the advantage is that nowhere are store your passwords but only the time you use it, and always on the basis of the combination of password and the name of the website.
How you make it work
Start by opening your document manager:
Where you place at the end of the document the following code, then save and close the document.
Code: Select all
strongpw () {
echo -n "Enter secret:"
read -r
echo '' # line break
echo -n "$ REPLY: $ 1" | sha256sum | perl -ne "s / ([0-9a-f] {2}) / print chr hex \ $ 1 / gie" | base64 | tr + / Ea | cut -b 1-20
}
After from the terminal the command strongpw and the website's name with the master password will create a strong password. Just use a master password that always you remember and of course the name of the website.
Advantage you do not need to write and store codes disadvantage if you ever forget a password you need your Linux or another Linux, so again to put the code in /etc/bash.bashrc.
Don't worry because there is a website which will give you exactly the same result if you remember your password and the website you are interested, but don't make it a habit because there are keyloggers, without that this means to have something like it the particular website.
http://ss64.com/pass/
It gives exactly the same result password as the example above. Of course if you do not remember the webpage visit again the " Tips and Tricks" to rediscover.
Enjoy it!