An open API service indexing awesome lists of open source software.

https://github.com/martian58/enc

Encrypt your files and directories with enc
https://github.com/martian58/enc

data-encryption directory-encryption encryption encryption-decryption file-encrypter file-encryption

Last synced: 6 months ago
JSON representation

Encrypt your files and directories with enc

Awesome Lists containing this project

README

        

# Enc

Enc is a command-line tool for encrypting and decrypting files and folders using AES encryption. Encrypted files can only be decrypted with the key specified by the user.

## Features

- Encrypt files and folders
- Decrypt encrypted files and folders with the user-specified key

## Installation

Clone the repository to your local machine:

```bash
git clone https://github.com/martian58/enc.git
cd enc
chmod +x install_requirements
chmod +x enc
./install_requirements
```
## For global usage
```bash
sudo cp enc /bin
```

## Usage

To encrypt a file:

```bash
enc --encrypt f
```

To encrypt a folder:
```bash
enc --encrypt F
```

To decrypt an encrypted file:
```bash
enc --decrypt f
```

To decrypt an encrypted folder:
```bash
enc --decrypt F
```

You will be prompted to enter the encryption/decryption key, which must be at least 16 characters long.

## Example

Encrypt a file:
```bash
enc --encrypt f secret.txt
```

Decrypt the encrypted file:
```bash
enc --decrypt f secret.txt
```
Encrypt a folder:
```bash
enc --encrypt F secret_folder
```
Decrypt the encrypted folder:
```bash
enc --decrypt F secret_folder
```

## Note

Make sure to keep your encryption key secure. Once a file or folder is encrypted, it can only be decrypted with the correct key.

## License

This project is licensed under the terms of the GNU General Public License (GPL) version 3. See the LICENSE file for details.