Generate complex passwords with simple phrases
Do you like to remember passwords of the form:
I can not stand! Especially taking into account the fact that periodically all these passwords need to be changed for each service separately, and there are so many of them that your head goes around! Where do you remember everything?
There are several options:
a) set simple passwords and are afraid that someone will pick them up / guess them;
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 encryption method for simple phrases using regular means in the system.
It is the third point that I will touch upon. This method boils down to the following (primitive example): At the output, you get a cryptographic 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 from a hash a certain number of times. I just would like to warn that the password length must be truncated (!), Because if the size is known, the cryptographic strength drops significantly.
I present to your attention a simple script to implement this action. 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 to MD5, then to BASE64 and cuts it to the specified length (set in a script), after which the result is displayed on the screen.
Example: enter 123we get YmExZjI1MTFmYzM , copy and paste where necessary.
The latest version of the script can always be obtained at this address.
qG4'P}: ZGKq? 0 [KO!, 7` @; 6F ] xQ1H] mxLPa #?
I can not stand! Especially taking into account the fact that periodically all these passwords need to be changed for each service separately, and there are so many of them that your head goes around! Where do you remember everything?
There are several options:
a) set simple passwords and are afraid that someone will pick them up / guess them;
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 encryption method for simple phrases using regular means in the system.
It is the third point that I will touch upon. This method boils down to the following (primitive example): At the output, you get a cryptographic hash of the form: b3d0da41b07d550d97d579bd642d7dbf
%echo "простая_фраза" | md5
. 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 from a hash a certain number of times. I just would like to warn that the password length must be truncated (!), Because if the size is known, the cryptographic strength drops significantly.
I present to your attention a simple script to implement this action. 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 to MD5, then to BASE64 and cuts it to the specified length (set in a script), after which the result is displayed on the screen.
Example: enter 123we get YmExZjI1MTFmYzM , copy and paste where necessary.
The latest version of the script can always be obtained at this address.