@stegapng/cli

1.2.1 • Public • Published

Stega PNG Command Line Utility

Hide arbitrary data in an image's RGB colorspace.

Stega PNG project | View Demo

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 some@example.email | 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

Readme

Keywords

Package Sidebar

Install

npm i @stegapng/cli

Weekly Downloads

0

Version

1.2.1

License

MIT

Unpacked Size

16 kB

Total Files

8

Last publish

Collaborators

  • stegapng