Skip to content

elizavetaRa/PNGstagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฆ PNGstagram

Steganography for the Web โ€” hide and reveal messages in PNG images

https://elizavetara.github.io/PNGstagram/


๐Ÿ–ผ What is PNGstagram?

PNGstagram is a minimalist web app that lets you hide secret messages inside PNG images using the least significant bits (LSBs) of pixel colors โ€” right in your browser.
No installation, no server, no trace.


โœจ Features

  • ๐Ÿง  Client-side steganography (no data leaves your browser)
  • ๐Ÿ“ Encode text messages into images
  • ๐Ÿ” Decode hidden messages from PNGs
  • ๐ŸŽจ Clean, tab-based UI
  • ๐Ÿ” (Optional) Easily extendable to AES encryption or file embedding

๐Ÿš€ How to Use

  1. Open index.html in your browser.
  2. Encode tab:
    • Upload a PNG image
    • Enter your secret message
    • Click โ€œEncode & Downloadโ€
  3. Decode tab:
    • Upload a PNG with a hidden message
    • Click โ€œRead Hidden Messageโ€
    • The secret is revealed!

๐Ÿงช How it Works

  • Each pixel has Red, Green, Blue, Alpha channels (4 bytes)
  • We modify the least significant bit (LSB) of R, G, and B to store message bits
  • Message length is stored in the first 4 bytes (32 bits)
  • Total: 3 bits per pixel, invisible to the human eye

๐Ÿงฎ Data Capacity Examples

Image Size Total Pixels Usable Bits Usable Bytes Approx. Text Capacity
100 ร— 100 10,000 30,000 ~3.75 KB ~3,750 characters
500 ร— 500 250,000 750,000 ~93.75 KB ~90,000 characters
1000 ร— 1000 1,000,000 3,000,000 ~375 KB ~375,000 characters
1920 ร— 1080 2,073,600 6,220,800 ~777 KB ~750,000 characters

(Text estimates assume ~1 byte per character in UTF-8 for typical English text)


๐Ÿ’ก Example Use Cases

  • Easter eggs in flyers or posters
  • Hidden invitations, challenge clues
  • Teaching digital privacy and steganography

๐Ÿ”“ License

MIT โ€” free to use, share, and modify.

About

Encrypt messages in PNGs for fun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages