Skip to main content

Binjector(Binary Injector) makes your text inject into image easily.

Project description

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"
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

binjector-0.1.10.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

binjector-0.1.10-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file binjector-0.1.10.tar.gz.

File metadata

  • Download URL: binjector-0.1.10.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for binjector-0.1.10.tar.gz
Algorithm Hash digest
SHA256 7c7cfa7c65656354536f881c1ed9620c2a25941d4a85b992c60d95a298ea0425
MD5 9fe6090fdd42ab8bccf6a74899e0254b
BLAKE2b-256 7e76bf26c116d3c7b4c1133a032be715c66e4c96e9cc79880bb24c0024c33f27

See more details on using hashes here.

File details

Details for the file binjector-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: binjector-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for binjector-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2d0cd40c5f9a4a36f395fc87ae068822365f581de54f4532713ec9eac95d20c3
MD5 8ad2bd618de8c92cdc2269fd5a12fa1f
BLAKE2b-256 84f32552da51355c13d8d564da0399bd509b83f9a36ddb3e3620e162b008c36b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page