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"
}
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)
| File | Size | Uploaded | |
|---|---|---|---|
| binjector-0.1.10.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|