zknigma-wasm
v1.1.0
Published
WASM steganography toolkit for PNG/WAV hide and extract operations
Downloads
18
Maintainers
Readme
Stegosaurus
About
Stegosaurus is a linux command line tool for wav and png steganography, complete with encryption and compression capabilities
This repository is focused on stego + proof artifact generation and does not implement on-chain registration/authentication state.
Payloads are handled as raw bytes, so you can hide text files, image files (for example iris scans), and other binary files.
For biometric workflows, you can hash the payload first and embed only the Poseidon-style hash digest by adding --poseidon-hash (or --ph) to hf.
Usage
run make to initially compile the source code
./stego h to display help with the tool
NPM Packaging (Frontend)
Build package artifacts:
npm run build:npmPublish flow:
npm login
npm publishFrontend usage:
import { createZkEnigmaWasm } from "zknigma-wasm";
const sdk = await createZkEnigmaWasm();
const stegoPng = sdk.hidePng({
coverBytes: new Uint8Array(coverArrayBuffer),
messageBytes: new Uint8Array(messageArrayBuffer),
encrypt: true,
compress: true,
key: "0123456789abcdef",
iv: "fedcba9876543210",
});