FCS_PRACTICAL_2

CCrypt is a command-line utility for encrypting and decrypting files and streams. It uses the Rijndael block cipher, which is the same algorithm used by the Advanced Encryption Standard (AES). CCrypt is designed to be a replacement for the standard Unix crypt command, providing stronger security.

Here are some basic commands and examples for using CCrypt:

Installation:

Debian/Ubuntu:

sudo apt-get install ccrypt

Usage:

Encrypt a File:

ccencrypt filename
You will be prompted to enter a passphrase. The encrypted file will be created with a ".cpt" extension.

Decrypt a File:

ccdecrypt filename.cpt
You will be prompted to enter the passphrase used during encryption.

Encrypt a Stream (stdin):

some_command | ccencrypt -c | another_command
This example encrypts the output of some_command and passes it to another_command.

Decrypt a Stream (stdout):

ccdecrypt -c < filename.cpt
This example decrypts the content of filename.cpt and outputs it to the terminal.

Change Passphrase:

ccrypt -k filename.cpt
Use this command to change the passphrase of an encrypted file.

Delete Original File after Encryption:

ccencrypt --shred filename
This command encrypts the file and securely deletes the original.

No comments:

Post a Comment

A distinctive water purification technique has been developed by a research team led by IIT Madras.

IIT Madras, in partnership with Tel Aviv University in Israel, has created an aerogel adsorbent designed for th...