OpenSSL tricks
A couple of useful tricks using OpenSSL, since OpenSSL can be installed just about anywhere, you can use this on any platform you whish.
File encryption:
To save an encrypted file with all your passwords, or sensitive data, write them on a file called ''secrets.txt", then open a Terminal, and type:
openssl enc -aes256 -salt -a -e -in secrets.txt -out secrets.txt.enc ENTER
You'll be asked for a pass-phrase (twice), don't forget that pass-phrase!
To decrypt the data, type:
openssl enc -aes256 -salt -a -d -in secrets.txt.enc -out secrets.txt ENTER
You'll be asked for the pass-phrase to decryt the file.
MD5 checksum:
You can easily get the checksum of a file using OpenSSL, for instance, to make sure that the file downloaded correctly, like this:
openssl dgst -md5 fileName.something ENTER
0 Comments:
Post a Comment
<< Home