![]() ![]() Don’t forget to provide us with your valuable feedback in the comments below. If you know any such tips and tricks you may send us your tips at, your tip will be published under your name and also we will include it in our future article. # echo U2FsdGVkX18Zgoc+dfAdpIK58JbcEYFdJBPMINU91DKPeVVrU2k9oXWsgpvpdO/Z | openssl enc -aes-256-cbc -a -d -salt -pass pass:tecmint Decrypt the above string using openssl command using the -aes-256-cbc decryption. Here in the above example the output of echo command is pipelined with openssl command that pass the input to be encrypted using Encoding with Cipher (enc) that uses aes-256-cbc encryption algorithm and finally with salt it is encrypted using password ( tecmint).ĥ. # echo Tecmint-is-a-Linux-Community | openssl enc -aes-256-cbc -a -salt -pass pass:tecmint Encrypt a string say “ Tecmint-is-a-Linux-Community” using aes-256-cbc encryption using password say “ tecmint” and salt. Moreover, mkpasswd is interactive and if you don’t provide password along with the command, it will ask password interactively.Ĥ. For example, to get a 12-character password, use pwgen 12, and the utility will spit out a set of 120 possible passwords from which to choose (six columns, 20 rows). Note you can input anything of your choice as salt. The default should be fine for most uses, but if you want a longer password, just use pwgen NN, where NN is the length of the password you’d like to generate. It will output the same result every-time. Hence every time you run the below command it will generate different output because it is accepting random value for salt every-time. The salt value is taken randomly and automatically. The below command will encrypt the password with salt. Make sure you have installed mkpasswd installed before proceeding. Salt is a random data which servers as an additional input to one way function in order to protect password against dictionary attack. Provide salt manually as well as automatically. Encrypt a password using crypt along with salt. Generate 7 random password of 20 characters. Generate a random password of character length 50. Generate a random password of character length 10. If not! Try installing the package ‘makepasswd’ using Apt or YUM. Before you can fire makepasswd command, make sure you have installed it. You may use ‘ makepasswd‘ to generate random, unique password of given length as per choice. Generate several random unique passwords of character length 50 in one go! $ pwgen 50Ģ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |