π Secure Image Steganography Tool (WinForms + AES-GCM) π Overview
This project is a Windows Forms application that lets you hide secret messages inside PNG images using steganography (Least Significant Bit method) and encrypt them with AES-256-GCM for strong security. The result is a normal-looking PNG file that secretly contains encrypted text β only someone with the right password can extract and decrypt it.
β¨ Features πΌ Embed text into PNG images using LSB steganography π AES-256-GCM encryption with PBKDF2 key derivation (200,000 iterations, SHA-256) π Password-protected message extraction π Capacity calculation (how many bytes the chosen image can hide) πΎ Save the stego image as a new PNG file π©βπ» Simple WinForms GUI β no command-line needed
π How to Use
-
Embedding a message Click Browseβ¦ to select a PNG image. Enter a password (used for AES encryption). Type your secret message into the text box. Click Embed (Encrypt + Hide). Save the new PNG with Save Stego PNGβ¦.
-
Extracting a message Open the stego PNG with Browseβ¦. Enter the same password you used to embed. Click Extract (Reveal + Decrypt). The hidden message appears in the text box.
π Technical Details Programming Language: C# Framework: .NET 6+ (Windows Forms) Encryption: AES-256-GCM Key Derivation: PBKDF2 with SHA-256, 200k iterations, 16-byte salt Steganography: LSB (Least Significant Bit) in R, G, and B channels (3 bits per pixel) File Format: PNG only (lossless β JPEG will destroy hidden data)
π Project Structure Secure_Image/ βββ Form1.cs # Main WinForms code (UI + logic) βββ Stego.cs # Steganography (LSB embed/extract) βββ Crypto.cs # AES-GCM + PBKDF2 encryption/decryption βββ Program.cs # Application entry point
Example: 1024Γ768 image β 288 KB max hidden data. πΈ Example Input: cat.png Hidden message: "Hello, this is a secret!" Output: cat_stego.png β looks identical, but contains the secret text.