small steganography utility
Project description
stegy
a small steganography utility that inserts text messages into images
lets start !
stegy = stegyImage()
message = "a secret message"
filepath = stegy.encode(message )
this code return filepath with './data/result.pgn'
That randomly generated PNG-file contains your secret message.
you can decode hidden message in './data/result.pgn' with :
decoded = stegy.decode(filepath)
return decoded str containing : a secret message
options
-
dest :
set the filepath of result by adding dest parameter to encode
filepath = stegy.encode(message , dest = './tmp/my.png' )
create PNG file according your dest parameter return
filepathwith './tmp/my.png' -
src :
give your own image file by adding src parameter to encode
filepath = stegy.encode(message , src = './srcImage/boat.jpg' )
create PNG file according your dest parameter return
filepathrelative to a downscaled PNG-file build from your src -
topics : this parameter is mutual-exclusive with dest parameter. give a topic list for randomly choosen image ( str comma-separated)
filepath = stegy.encode(message , topics = 'cat,boat' )
the generated PNG should represent either a 'cat' or a 'boat'
-
key : a key for message encryption (override default one)
a png generated with key parameter can only be decoded with the same key.
filepath = stegy.encode("lorem ipsum sic dolores amet..." , key = 'MySecretKey' ) decoded = stegy.decode(filepath , key = 'MySecretKey' )
without the rigth 'key' error 'key error' is thrown
Project details
Release history Release notifications | RSS feed
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 pystegy-0.0.1.tar.gz.
File metadata
- Download URL: pystegy-0.0.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dbb68f53303e55b893e2e032bba558d2a0a7e8aa4f2f7ae0d0ea4540019e5aa
|
|
| MD5 |
9409286fe351ef15dd6a858eec211e4d
|
|
| BLAKE2b-256 |
09c58783dcce12675b9fcb9e7d8b53855c870d436e4f5194b5310b4bc4658386
|
File details
Details for the file pystegy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pystegy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8da42a4270d5d69b5bfbaa927b75592304f2d77c1c461456629375cee5f407c8
|
|
| MD5 |
5e41b5d7f5cca934d6873a23579835bd
|
|
| BLAKE2b-256 |
0dfb06c1d5818e5ad6b583fc61c4911a6e802742650f1070acaf8418d5ea2e83
|