Cryptr – Encrypt your files like a pro with this bash script


Cryptrit is a very practical bash script which will allow you to encrypt And decipher your sensitive files in no time, all cleanly and with top-notch security thanks to OpenSSL AES-256.

If, like me, you tend to store a lot of confidential data on your computer (passwords, personal documents, compromising photos from your last costume party, etc.), you know how important it is to protect them from prying eyes. Okay, we’re not all paranoid enough to be afraid that the NSA or Gerald will come and search through our files, but you can never be too careful!

With this thing, you no longer have to worry about complicated encryption solutions to set up. You just need to clone the project from the GitHub repository:

git clone

Next, create a symbolic link to the script cryptr.bash to be able to use it easily from anywhere:

ln -s "$PWD"/cryptr/cryptr.bash /usr/local/bin/cryptr

And there you have it, you are ready to encrypt your little secrets like a pro! The command encrypt allows you to encrypt a file by adding the extension .aeswhile decrypt does the reverse operation.

cryptr encrypt ./secret-file
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
ls -alh
-rw-r--r-- 1 user group 1.0G Oct 1 13:33 secret-file
-rw-r--r-- 1 user group 1.0G Oct 1 13:34 secret-file.aes

You can even set the password to use via the environment variable CRYPTR_PASSWORD to automate the process:

➜ CRYPTR_PASSWORD=motdepasse007 cryptr encrypt ./secret-file

Honestly, it’s so simple and effective that even James Bond Raymonde can make it her favorite tool. In short, if you are looking for a simple and effective encryption solution to protect your sensitive data, I really recommend you to try Cryptr.



Source link

Leave a Comment