Do you like to remember passwords like:
qG4'P}: ZGKq?
0 [KO!, 7` @; 6F
] xQ1H] mxLPa #
?
I can not stand! Especially considering that periodically all these passwords need to be changed for each service separately, and there are so many of them that the head is spinning! Where is everything you remember?
')
There are several options:
a) set simple passwords and are afraid that someone will pick them up / guess;
b) set complex passwords (see above) and carry them all the time with you on a piece of paper (which is also very unsafe!);
c) use the method of encrypting simple phrases by regular means in the system.
This is the third point I will touch upon. This method boils down to the following (primitive example):
%echo "_" | md5
At the output, you will receive a crypto-resistant hash of the form:
b3d0da41b07d550d97d579bd642d7dbf . However, this is the most primitive example. You can use md5 in conjunction with sha1 / uuencode / openssl and in general with everything that only comes to your mind! It is also possible, for example, to take a hash with a hash of a certain number of times. I would just like to warn you that the length of the password should be cut (!), Because if the size is known, cryptographic resistance drops significantly.
I present to you a simple script for the implementation of this act. I called it "genspass" (from GenerateS encoded Password), written in the classic unix shell (of course, compatible with bash / zsh and others).
The program works simply: it receives a key phrase (a word, a symbol — it doesn't matter), translates it into MD5, then into BASE64 and cuts it to the assigned length (specified in the script), after which the result is displayed on the screen.
Example: enter
123 we get
YmExZjI1MTFmYzM , copy and paste where necessary.
The latest version of the script can always be obtained at
this address.