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

https://github.com/ketanmehra003/silent-key

A command-line tool designed to provide multi-layered image security by combining advanced encryption (ChaCha20) and custom steganography techniques. This project enables secure image transmission and storage, making it ideal for use cases in defense, privacy protection, and digital content management.
https://github.com/ketanmehra003/silent-key

command-line-tool cryptography cybersecurity python3

Last synced: about 1 year ago
JSON representation

A command-line tool designed to provide multi-layered image security by combining advanced encryption (ChaCha20) and custom steganography techniques. This project enables secure image transmission and storage, making it ideal for use cases in defense, privacy protection, and digital content management.

Awesome Lists containing this project

README

          

# Silent Key

A command-line tool designed to provide multi-layered image security by combining advanced encryption (ChaCha20) and custom steganography techniques. This project enables secure image transmission and storage, making it ideal for use cases in defense, privacy protection, and digital content management.

---

## **Features**
- **Image Encryption**: Secure images using ChaCha20 encryption, resulting in an encrypted image and a key file.
- **Image Decryption**: Decrypt images with the corresponding key file to restore the original image.
- **Steganography**: Hide an image within another using a custom LSB-based embedding algorithm.
- **Extreme Encryption Mode**:
- Divide images into quadrants and encrypt each with a unique key.
- Reassemble encrypted quadrants into a single image with a consolidated key file.

---

## **Use Cases**
- **High-Security Environments**: Protect sensitive images during transmission or storage in military and defense scenarios.
- **Privacy Advocates**: Secure personal data from unauthorized access.
- **Content Creators**: Protect intellectual property from theft or misuse.

---

## **Installation**
1. Clone the repository:
```bash
git clone https://github.com/your-username/hybrid-image-security-tool.git
cd hybrid-image-security-tool
```

2. Install required dependencies:
```bash
pip install -r requirements.txt
```
## **Usage**
### **Encrypt an Image**
Apply plain encryption
```bash
python tool.py encrypt --input_file --output_file --key_file
```

Use hybrid function of encryption and steganography
```bash
python tool.py encrypt --input_file --output_file --key_file --cover_file
```

Use extreme encryption
```bash
python tool.py encrypt --input_file --output_file --key_file --extreme
```

### **Decrypt an Image**
For plain decryption
```bash
python tool.py decrypt --input_file --output_file --key_file
```

For hybrid encrypted images
```bash
python tool.py decrypt --input_file --output_file --key_file --reveal_file
```

For extreme encrypted images
```bash
python tool.py decrypt --input_file --output_file --key_file --extreme
```

### **Steganography (Hide an Image)**
```bash
python tool.py hide --cover_file --input_file --output_file
```

### **Steganography (Reveal an Image)**
```bash
python tool.py reveal --input_file --output_file
```

## **Dependencies**
- **Python Libraries:**
- ```Pillow```: For image handling.
- ```Numpy```: For efficient computations.
- ```Cryptography```: For ChaCha20 encryption.
- ```argparse```: For command-line argument parsing.

## **Future Enhancements**
1. Encrypting image parts using random lines with varying slopes for more complex partitioning.
2. Using object detection to prioritize encryption of critical image areas.

## **Contributing**
Contributions are welcome! Feel free to fork the repository and submit a pull request for review.