Encrypt/Decrypt Files in Linux using Ccrypt

Configurare noua (How To)

Situatie

Ccrypt is a command line tool for encryption and decryption of data. Ccrypt is based on the Rijndael cipher, the same cipher used in the AES standard. On the other hand, in the AES standard, a 128-bit block size is used, whereas ccrypt uses a 256-bit block size. Ccrypt commonly uses the .cpt file extension for encrypted.

Solutie

Pasi de urmat
sudo apt-get install ccrypt // in ubuntu

In order to encrypt file using this tool, use following syntax:

ccrypt filename

To encrypt a file : impfile

ccrypt impfile

It will prompt for password couple of times, and once done, it will remove your source file and save the file with .cpt extension.

encrypting

Source file have been removed and only encrypted file is there:

Lightbox

Now in order to decrypt an already encrypted file, command syntax is:

ccrypt –d encryptedfilename

So, Decrypt the encrypted file as:

ccrypt –d impfile.cpt

It will ask for password and will decrypt the file.

decrypt-ccrypt

Tip solutie

Permanent

Voteaza

(6 din 11 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?