Skip to main content

DM-01 · Projects · Updated Dec 2026

Apr 16, 2026

PRJ-001Shipped

Stegano

A C command-line tool that hides secret messages inside BMP and PNG images, with optional password protection.

platform
C
lang
C
year
2026
type
tooling
authors
1

C · libpng · zlib · Make

Overview

Stegano hides a text message inside an image so that the image looks unchanged.

How it works

Each pixel stores its red, green and blue channels as one byte each. Changing the least significant bit of a byte changes that colour by 1 out of 255, which the eye can't see. Stegano writes the message into those bits and reads it back out when decoding. An optional password protects the message.

stegano encode input.png output.png "your message" [password]
stegano decode output.png [password]

Structure

  • utils.c: reading and setting single bits
  • image.c: loading and saving BMP and PNG files
  • steg.c: the LSB embedding and extraction
  • main.c: the command-line interface