> For the complete documentation index, see [llms.txt](https://linux-tutorial-cli.gitbook.io/linux-cli-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://linux-tutorial-cli.gitbook.io/linux-cli-tutorial/txt-files/ccrypt.md).

# ccrypt

## ccrypt

The `ccrypt` command in Linux is used to encrypt and decrypt files. It is a command-line tool that uses the Rijndael cipher, which is a secure and efficient encryption algorithm.

The `ccrypt` command is used in the following syntax:

```
ccrypt [options] [input_file] [output_file]
```

The `options` can be used to specify the following:

* `-e` : Encrypt the file.
* `-d` : Decrypt the file.
* `-k` : Specify the encryption key.
* `-p` : Prompt for the encryption key.
* `-v` : Verbose mode.

For example, to encrypt the file `my_file.txt` and save the encrypted file as `my_file.enc`, you would run the following command:

```
ccrypt -e my_file.txt my_file.enc
```

This command will encrypt the file `my_file.txt` and save the encrypted file as `my_file.enc`.

To decrypt the file `my_file.enc` and save the decrypted file as `my_file.txt`, you would run the following command:

```
ccrypt -d my_file.enc my_file.txt
```

This command will decrypt the file `my_file.enc` and save the decrypted file as `my_file.txt`.

To specify the encryption key, you would run the following command:

```
ccrypt -e -k my_key my_file.txt my_file.enc
```

This command will encrypt the file `my_file.txt` using the encryption key `my_key` and save the encrypted file as `my_file.enc`.

To prompt for the encryption key, you would run the following command:

```
ccrypt -e -p my_file.txt my_file.enc
```

This command will encrypt the file `my_file.txt` and prompt you for the encryption key. The encryption key will be displayed on the screen only once, so be sure to write it down.

The `ccrypt` command is a powerful tool that can be used to encrypt and decrypt files. It is a versatile command that can be used to protect sensitive data.

Here are some additional things to note about the `ccrypt` command:

* The `ccrypt` command is part of the mcrypt package.
* The `ccrypt` command can be used on any system that uses the Linux kernel.
* The `ccrypt` command can be used to encrypt and decrypt any file that is supported by the mcrypt package.
* The `ccrypt` command is a safe tool to use. It will not damage any files on the system.

## help

```
```
