Spaces:
Sleeping
Sleeping
Update README.md
Browse files43 unmodified lines44454643 unmodified linesCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference43 unmodified lines444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014143 unmodified linesCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference# π CipherStego: Secure Block-Based Image Steganography> **CipherStego** is a hybrid security framework combining **Cryptography** and **Steganography**. It utilizes a dual-layer shuffling mechanism (Block & Pixel permutation) combined with LSB (Least Significant Bit) insertion to ensure high visual imperceptibility and robust data hiding.---## π¬ Abstract & MethodologyTraditional steganography is vulnerable to steganalysis if the cover image statistical properties are altered significantly. CipherStego mitigates this by encrypting the cover image *before* embedding, a technique known as **Encrypted Domain Data Hiding**.### Key Algorithms:1. **Block Permutation (Key 1):** The image is divided into $2 \times 2$ matrices. The positions of these blocks are shuffled using a chaotic map generated by a Fernet key.2. **Intra-Block Diffusion (Key 2):** Pixels within each block are permuted to destroy local correlation.3. **LSB Embedding (Key 3):** The secret image is flattened and embedded into the Least Significant Bits of the encrypted cover.---## π System ArchitectureThe system operates on a **3-Key Authentication** principle.* **Level 1 Access:** View the "Constructed" (Encrypted) image.* **Level 2 Access:** Decrypt the cover image.* **Level 3 Access (Root):** Extract the hidden secret image.```mermaidgraph TDsubgraph "Sender Side"Cover[πΌοΈ Cover Image]Secret[π€« Secret Image]Cover -->|Key 1: Block Shuffle| Encrypt[π Encrypted Domain]Encrypt -->|Key 2: Pixel Shuffle| EncryptSecret -->|Key 3: Bit Stream| Embedder[π₯ LSB Embedder]Encrypt --> EmbedderEmbedder --> Stego[π¦ Stego Image]endsubgraph "Receiver Side"Stego -->|Input| Extractor[π€ Data Extractor]Extractor -->|Keys 1 & 2| Construct[πΌοΈ Reconstruct Cover]Extractor -->|Key 3| Hidden[π€« Extract Secret]endπ Performance MetricsThe system evaluates the quality of the steganography using standard research metrics:RMSE (Root Mean Square Error): Measures the difference between the original cover and the reconstructed image. Lower is better. $$ RMSE = \sqrt{\frac{1}{MN} \sum (I_{orig} - I_{stego})^2} $$Entropy: Measures the randomness of the encrypted image. A value closer to 8 (for 8-bit images) indicates better encryption.Component,Technology,DescriptionBackend,FastAPI,Asynchronous REST API for handling image uploads.Crypto,Fernet (AES),Symmetric key encryption for shuffling vectors.Processing,NumPy,High-performance matrix manipulation for 2x2 blocks.Imaging,Pillow (PIL),Image I/O and format conversion.π¨βπ» Developer's NoteThis project was developed to explore the trade-offs between Embedding Capacity and Visual Imperceptibility. Future improvements include implementing Discrete Cosine Transform (DCT) for frequency-domain embedding to improve resistance against compression attacks.[Your Name] | [LinkedIn] | [Email]### π Final Checklist:1. Create the `cipher-stego-lab` folder.2. Create `src/core` and `src/api` folders.3. Paste the refactored code into the respective files.4. Copy the `requirements.txt` (include `fastapi`, `uvicorn`, `numpy`, `pillow`, `cryptography`).5. Push to GitHub with the Mermaid diagram in the README.This looks like a serious **Security Engineering** project now.
README.md+95