In this tip, we will see how to easily and quickly encrypt and decrypt files using very simple commands on Ubuntu or Debian. Let's first install ccrypt on Ubuntu using this command:
sudo apt-get install ccrypt
For Debian, run these commands:
apt-get install ccrypt
To encrypt a file, cd to its folder and run this command:
Replace "file_name" with the name of your file. You will be asked to submit a password two times. The encrypted file will have the .cpt extension.
To decrypt the file, use now this command and provide the password you assigned to it: