Linux command
ccrypt 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Encrypt a file
ccrypt [file.txt]
Decrypt a file
ccrypt -d [file.txt.cpt]
Decrypt to stdout
ccat [file.txt.cpt]
Change encryption key
ccrypt -x [file.cpt]
Encrypt with key from file
ccrypt -k [keyfile] [file.txt]
Force overwrite
ccrypt -f [file.txt]
说明
ccrypt encrypts and decrypts files and streams using the Rijndael cipher (AES) with 256-bit keys. It replaces the original file with an encrypted version bearing a `.cpt` extension, and the original is securely overwritten rather than simply deleted. The tool provides three modes of operation through separate command names: ccencrypt for encryption, ccdecrypt for decryption, and ccat for decrypting to standard output without modifying the file. All three are functionally equivalent to invoking ccrypt with the appropriate flag. Keys are prompted interactively by default and must be entered twice for encryption to prevent typos. For automated workflows, keys can be read from a file with the `-k` option.
参数
- -e, --encrypt
- Encrypt mode
- -d, --decrypt
- Decrypt mode
- -c, --cat
- Decrypt to stdout
- -x, --keychange
- Change encryption key
- -k _file_, --keyfile _file_
- Read key from file
- -K _key_, --key _key_
- Specify key on command line (unsafe)
- -f, --force
- Overwrite without asking
- -v, --verbose
- Print progress info
- -q, --quiet
- Suppress warnings
- -b, --brave
- Ask for key only once
- -S _suf_, --suffix _suf_
- Use suffix instead of .cpt
- -l, --symlinks
- Process symbolic links
FAQ
What is the ccrypt command used for?
ccrypt encrypts and decrypts files and streams using the Rijndael cipher (AES) with 256-bit keys. It replaces the original file with an encrypted version bearing a `.cpt` extension, and the original is securely overwritten rather than simply deleted. The tool provides three modes of operation through separate command names: ccencrypt for encryption, ccdecrypt for decryption, and ccat for decrypting to standard output without modifying the file. All three are functionally equivalent to invoking ccrypt with the appropriate flag. Keys are prompted interactively by default and must be entered twice for encryption to prevent typos. For automated workflows, keys can be read from a file with the `-k` option.
How do I run a basic ccrypt example?
Run `ccrypt [file.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -e, --encrypt do in ccrypt?
Encrypt mode