Stegaveil CLI
A command-line tool that hides messages inside images, with optional password-based encryption and a browser demo that runs the real CLI.
- Python
- Typer
- Rich
- Pillow
- Argon2
- Cryptography
- Pyodide
Stegaveil started in May 2025 as “Stegaboo.” I’d been working through Typer CLI tutorials while experimenting with steganography on the side, so combining the two felt like a natural first command-line project. It was also my first project built with AI from the very start, which made it as much about learning to direct AI-written code as about the code itself.
Steganography hides the fact that a message exists at all, while cryptography makes a message unreadable without hiding it. Stegaveil does both. It writes each bit of a message into the lowest bit of a pixel’s red, green, and blue values, a change too small for the eye to notice, and it can optionally encrypt the message first so it stays unreadable even if someone finds it.
When I came back to it in 2026, the playful Stegaboo branding no longer fit, and neither did some of its internals: messages were stored as plain text, ended with a marker string a message could accidentally contain, and had no encryption at all. I rebuilt it from scratch as Stegaveil. Each message now starts with a small header recording its length, so any text decodes correctly, and optional encryption uses AES-256-GCM with a key derived from your password by Argon2id. A wrong password or a tampered image fails loudly instead of returning garbage.
To make it easy to try, I added a live demo that runs the actual Python package in the browser through WebAssembly, so nothing you upload leaves your device. Getting it working meant handling details like Argon2’s use of multiple threads, which the browser’s Python runtime doesn’t support.
Stegaveil isn’t meant for serious secrecy: simple least-significant-bit hiding can be detected with statistical analysis. What it gave me was a lesson in the difference between code that works and code I understand, and going back through a project I hadn’t written by hand is what turned it into one I can explain.