Skip to main content

Image Steganography

image_out

What you see isn't everything.

This image contains hidden data.

example

Dependency

numpy, pillow, click, ...

Check pyproject.toml

Install

pip install -r web/requirements.txt

Use as a module

Hide message

converts the input string to binary and replaces the LSB of each pixel

# case 1. use default setting
python examples/hide.py

# case 2. input options
python examples/hide.py -in image.png -out output.png -m message.txt

# case 3. binjector from pypi
binjector hide -i image.png -o output.png -m message.txt

Seek message

Concatenate each LSB in the image to see the hidden string.

# case 1. use default setting
python examples/seek.py

# case 2. input options
python examples/seek.py -in output.png

# case 3. binjector from pypi
binjector seek -i output.png

Serve as WebServer (with FastAPI)

can serve steganography module on web server if you want.

uvicorn web.server.main:app --host=0.0.0.0 --port=8000

Connect to browser (with Next.js)

can serve steganography webpage if you want

cd web/client && yarn && yarn dev

API Document

Automatic docs

Check this out

Appendix

Check setting file

You can check the image path or other required values.

{
  "encoding": "utf8",
  "bits": 8,
  "token_string": "#secret#",
  "message": "./message.txt",
  "in_image": "./image.png",
  "out_image": "./output.png",
  "modified_image": "./output.png"
}

Metadata

Release files for binjector 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for binjector 0.1.10
File Size Uploaded
binjector-0.1.10.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for binjector 0.1.10
File Interpreter ABI Platform
binjector-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 kB

Release files / binjector-0.1.10.tar.gz

Download URL binjector-0.1.10.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7c7cfa7c65656354536f881c1ed9620c2a25941d4a85b992c60d95a298ea0425
BLAKE2b-256 checksum
How to use checksums
7e76bf26c116d3c7b4c1133a032be715c66e4c96e9cc79880bb24c0024c33f27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / binjector-0.1.10-py3-none-any.whl

Download URL binjector-0.1.10-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d0cd40c5f9a4a36f395fc87ae068822365f581de54f4532713ec9eac95d20c3
BLAKE2b-256 checksum
How to use checksums
84f32552da51355c13d8d564da0399bd509b83f9a36ddb3e3620e162b008c36b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page