Image β’ Audio β’ Text Encryption & Steganography Tool
A Flask-based web application that enables secure text encryption, image steganography, and imageβaudio transformation using cryptographic techniques.
- π Text Encryption / Decryption (Fernet + SHA-256)
- πΌοΈ Hide text inside images (LSB Steganography)
- π Extract hidden messages from images
- π Convert images to audio
- π Recover images from audio
- π Keyword-based secure transformations
flowchart TD
A[User Input] --> B[Flask App]
B --> C{Mode Selection}
C -->|Text Encrypt| D[Encrypt Text]
C -->|Text Decrypt| E[Decrypt Text]
C -->|Image Encrypt| F[Hide Text in Image]
C -->|Image Decrypt| G[Extract Text from Image]
C -->|Audio Encrypt| H[Image β Audio]
C -->|Audio Decrypt| I[Audio β Image]
D --> J[Output]
E --> J
F --> J
G --> J
H --> J
I --> J
flowchart LR
A[Keyword] --> B[SHA-256 Hash]
B --> C[Base64 Key]
C --> D[Fernet Encryption]
D --> E[Encrypted Data]
flowchart TD
A[Input Image] --> B[Convert to Pixels]
B --> C[Encrypt Text]
C --> D[Convert to Binary]
D --> E[Embed in LSB]
E --> F[Save Image]
F --> G[Extract LSB]
G --> H[Binary β Text]
H --> I[Decrypt Text]
flowchart TD
A[Image] --> B[Flatten Pixels]
B --> C[Normalize Values]
C --> D[Convert to Audio Wave]
D --> E[Save WAV]
E --> F[Load Audio]
F --> G[Denormalize]
G --> H[Reshape using Shape File]
H --> I[Recovered Image]
project/
β
βββ static/
β βββ uploads/
β
βββ templates/
β βββ base.html
β βββ index.html
β βββ tool.html
β βββ about.html
β βββ guide.html
β βββ donate.html
β
βββ app.py
βββ requirements.txt
βββ README.md
git clone https://github.com/your-username/stegocrypt.git
cd stegocrypt
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
pip install -r requirements.txtpython app.pyOpen in browser:
http://127.0.0.1:5000/
- Go to:
/tool/text-encrypt - Enter text + keyword
- Go to:
/tool/text-decrypt
- Upload image + message + keyword
- Download encrypted image
π Extract Hidden Text
- Upload encoded image + keyword
- Upload image
- Download
.wav+.npy
- Upload
.wav+.npy - Enter keyword β recover image
- Hashing: SHA-256
- Encryption: Fernet (symmetric)
- Steganography: LSB encoding
- Key Derivation: Keyword β Hash β Key
- Message size limited by image capacity
- Shape file required for audio decoding
- Incorrect keyword = decryption failure
- Large files may impact performance
- Backend: Flask
- Libraries:
- cryptography
- numpy
- opencv-python
- pillow
- scipy
- π User authentication
- βοΈ Cloud storage (AWS S3)
- π‘ API endpoints
- π¨ Drag & drop UI
- π€ AI-based image optimization
fork β clone β create branch β commit β push β PR
MIT License
Adit Sharma