Skip to content

AbdulBaasith005/PNGCrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ pngcrypt - Secure Steganography with AES-256 & RSA-2048

🔍 Hide and Protect Messages in PNG Images

pngcrypt is a command-line tool that securely hides text messages inside PNG images using AES-256 encryption + RSA-2048 key protection and LSB (Least Significant Bit) steganography.


🚀 Features

Strong Encryption: Uses AES-256 (symmetric) + RSA-2048 (asymmetric) for high security.
Lossless Steganography: Embeds messages without altering image quality.
PNG Support: Works exclusively with valid PNG images.
Integrity Check: Ensures the image is a valid stego PNG before decryption.
Command-line Tool: Simple-to-use CLI with encryption and decryption modes.


🛠️ Technologies Used

  • Python 3
  • OpenSSL (for RSA key generation)
  • Libraries: argparse, cv2 (OpenCV), numpy, pycryptodome, base64, struct

📌 Installation

1️⃣ Clone the Repository

git clone https://github.com/abdulbaasith005/pngcrypt.git
cd pngcrypt

Prerequisites

Ensure you have Python 3.x installed along with the required dependencies.

pip install -r requirements.txt

🔑 Generating RSA Key Pairs (via OpenSSL)

Before using pngcrypt, generate a pair of RSA keys:

openssl genpkey -algorithm RSA -out private.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -pubout -in private.pem -out public.pem

🚀 Usage

🔹 Encrypt a Message into a PNG

python pngcrypt.py -e -i input.png -t message.txt -pub public.pem -o output.png

🔹 Decrypt a Message from a PNG

python pngcrypt.py -d -i steg.png -pvt private.pem -o decrypted.txt

🌟 Why pngcrypt?

Strong Encryption: Uses AES-256 for message encryption and RSA-2048 for key protection.
Secure Transmission: Message cannot be decrypted without the correct private key.
Lossless Steganography: Embeds data without significantly altering image quality.
CLI-Based: Easily integrate into scripts or automation workflows.

🔮 Future Enhancements

✅ Support for JPEG and BMP formats
✅ GUI version for better user experience
✅ Improved compression for larger messages

📜 License

This project is open-source and available under the MIT License.

🚀 Secure your messages with pngcrypt today! 🔏

About

pngcrypt is a command-line tool for securely embedding and extracting encrypted messages within PNG images using AES-256 and RSA-2048. This ensures that the hidden data remains confidential and can only be accessed with the correct private key.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages