stegcrypt

Professional steganography with AEAD encryption and K-of-N threshold split

v1.0.1
Linux

Quick Start

Install via jcli

jcli install stegcrypt

Single carrier

# Hide a file inside one PNG
stegcrypt embed --carrier photo.png --secret notes.txt --out stego.png

# Recover it
stegcrypt extract --in stego.png --out notes.txt

K-of-N threshold split

# Distribute a file across 5 carriers; any 3 of them can reconstruct
stegcrypt embed-split --shares 5 --threshold 3 \
    --carrier a.png --carrier b.png --carrier c.png \
    --carrier d.png --carrier e.png \
    --secret vault.tar.gz --out-dir shares

# Recipient with any 3 of the 5 stego files:
stegcrypt gather --out vault.tar.gz shares/share-00.png shares/share-02.png shares/share-04.png

Defensive use — statistical detection

# Run chi-square + sample-pair tests on a suspect file
stegcrypt detect --in suspect.png

What it does

stegcrypt hides a secret inside one or more carrier files. Encryption is authenticated (any tampering surfaces as a clean failure, not garbage output), and the K-of-N threshold mode means an attacker needs both the password and at least K of N carriers to recover anything.

Subcommands

CommandWhat it does
embedHide a file inside one carrier
extractRecover the secret from one stego carrier
embed-splitDistribute across N carriers, any K reconstruct
gatherReconstruct from K-of-N share files
capacityPrint the bytes available in a carrier at given LSB depth
inspectCarrier dimensions, channels, and capacity estimates
detectChi-square + sample-pair statistical stego triage
key-newGenerate a long random key file (alternative to a password)

Security notes

Use lawfully. stegcrypt is appropriate for: securely transporting personal data on untrusted networks, distributing recovery secrets across trusted parties, blue-team / DFIR steganalysis, and authorised security research. It is not appropriate for use in jurisdictions that restrict cryptography, or to bypass legal disclosure obligations. Operator responsibility.