Here are some basic commands and examples for using CCrypt:
Installation:
Debian/Ubuntu:
sudo apt-get install ccryptUsage:
Encrypt a File:
ccencrypt filenameYou will be prompted to enter a passphrase. The encrypted file will be created with a ".cpt" extension.
Decrypt a File:
ccdecrypt filename.cptYou will be prompted to enter the passphrase used during encryption.
Encrypt a Stream (stdin):
some_command | ccencrypt -c | another_commandThis example encrypts the output of some_command and passes it to another_command.
Decrypt a Stream (stdout):
ccdecrypt -c < filename.cptThis example decrypts the content of filename.cpt and outputs it to the terminal.
Change Passphrase:
ccrypt -k filename.cptUse this command to change the passphrase of an encrypted file.
Delete Original File after Encryption:
ccencrypt --shred filenameThis command encrypts the file and securely deletes the original.
No comments:
Post a Comment