Binjector(Binary Injector) makes your text inject into image easily.
Project description
Image Steganography
What you see isn't everything.
This image contains hidden data.
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file binjector-0.1.8.tar.gz.
File metadata
- Download URL: binjector-0.1.8.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dadc19a2d6370bcadb08527501e8de2ce83bfa93e33101bf091a586a9f4ae9c
|
|
| MD5 |
2643085ffd284ad5713cf01c74bb2f65
|
|
| BLAKE2b-256 |
6c422902f0b4e0bf375b19892e8fcf245c839cf34b08193ef373a48786f3e552
|
File details
Details for the file binjector-0.1.8-py3-none-any.whl.
File metadata
- Download URL: binjector-0.1.8-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2acfeff5b003eb212f4f33210b8009a30d93c42a46089116896db33aade22102
|
|
| MD5 |
b466385bd49d3d0a7b73cfdbf3c1ba07
|
|
| BLAKE2b-256 |
828ce4bd5bf729842c257d62b7a4d21604fd208e25100dd3b4b245ee4d080fb3
|