@stegapng/cli
v1.2.1
Published
A CLI for stegapng
Downloads
9
Readme
Install
Easily install via your favorite Node.js package manager (e.g. npm):
npm install -g @stegapng/cli
Simple Usage Examples
The stega CLI follows typical UNIX syntax conventions. For more usage info, run stega help
.
# Embed data into image.png
stega embed image.png < data.txt > embedded.png
# Extract data out of an image
stega extract embedded.png
Real-World Usage Examples
You can easily combine stega with other *nix tools to achieve amazing things.
Files
Embed entire file trees, with gzip compression.
# Embed files into an image
tar cz mydir | stega embed image.png > embedded.png
# Extract all the files
stega extract embedded.png | tar xz
Encryption
Securely compress and encrypt files before embedding.
# Embed data encrypted via AES (with a password)
tar cz mydir | gpg --symmetric --cipher-algo AES256 | stega embed image.png > embedded.png
# Embed data encrypted for a specific recipient (with their public key)
tar cz mydir | gpg --encrypt --recipient [email protected] | stega embed image.png > embedded.png
# Extract and decrypt the data (from either encryption scenario)
stega extract embedded.png | gpg --decrypt | tar xz
Contribution
Please feel free to open an issue or submit a pull request.
License
MIT