Skip to content
case file #008

2026 · Author

StegaNet

Steganography in C over sockets: hide text, images and audio inside media and send them between machines.

Shipped

Problem

why this exists

Exchange hidden messages — text, images and audio — over a network, with encryption and integrity checks.

Architecture

napkin sketch, cleaned up
  1. Raylib UI
  2. AppStatemutexes
  3. Stego codecimage · audio LSB
  4. TCP socketsframed

A centralised AppState model orchestrates multi-threaded networking away from the Raylib UI thread using mutexes.

Technical decisions

and the trade-offs
  • Length-prefixed framing

    Structured messages travel over TCP with explicit framing.

  • Encrypt and verify

    AES-256-CBC payload encryption with CRC32 integrity checks.

Key engineering challenges

the bruises
  1. 1

    A resilient protocol

    Keep-alive pings, timeouts and latency measurement between nodes.

Results

  • ✔ Image steganography up to 4KB across R, G, B channels
  • ✔ Audio steganography with LSB manipulation

Learnings

  • ✎ Frame every message and checksum it, so corruption is detected instead of decoded into garbage.