This page looks best with JavaScript enabled

Encrypt files using ccrypt

 ·  🎃 kr0m

Ccrypt is a tool that allows us to encrypt and decrypt any file in a simple and fast way. It uses Rijndael encryption, chosen as the standard by the US government for the Advanced Encryption Standard (AES), one of the most secure encryption systems that exist.

We install the tool:

pkg install ccrypt

We generate the passkey with which we will encrypt the files:

echo “PASSWORD” > passkey
chmod 600 passkey

We encrypt the file:

ccrypt -e -k backup_passkey FILE

It will have generated a file with the same name but with the .cpt extension:

FILE.cpt

To decrypt it and obtain the original file, we must execute ccrypt with the -d parameter:

ccrypt -d FILE.cpt

If you liked the article, you can treat me to a RedBull here