https://github.com/martian56/enc
Encrypt your files and directories with enc
https://github.com/martian56/enc
data-encryption directory-encryption encryption encryption-decryption file-encrypter file-encryption
Last synced: 4 months ago
JSON representation
Encrypt your files and directories with enc
- Host: GitHub
- URL: https://github.com/martian56/enc
- Owner: martian56
- License: gpl-3.0
- Created: 2024-02-08T04:53:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T18:56:39.000Z (9 months ago)
- Last Synced: 2025-08-20T14:43:50.487Z (4 months ago)
- Topics: data-encryption, directory-encryption, encryption, encryption-decryption, file-encrypter, file-encryption
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 12
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.