Skip to main content

small steganography utility

Project description

stegy - Release 0.0.2

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 filepath with './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 filepath relative to a downscaled PNG-file build from your src

  • topics : this parameter is inactive if scr parameter is set. 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' )
    

Release Note v 0.0.2

Added 2 exceptions on 'decode'

  • NoMessage exception : if given image have no message in it
  • BadKey exception : if a message is found but the decode key doesn't fit.

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

pystegy-0.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

pystegy-0.0.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file pystegy-0.0.2.tar.gz.

File metadata

  • Download URL: pystegy-0.0.2.tar.gz
  • Upload date:
  • Size: 9.2 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

Hashes for pystegy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5086a0c547c02d525cc705680877778787f267d549e8e60d1ba950b67303ef9f
MD5 a74087751088ce28ffa2d74f954b8453
BLAKE2b-256 d10421a25d97419a646383345e847dd2dbcc68b70fcf028ea57dc61f1b0c1e10

See more details on using hashes here.

File details

Details for the file pystegy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pystegy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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

Hashes for pystegy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 96fa57374da6e053f521665e028e294bb02c7bea39aef14409c451aa376d2650
MD5 8a5af70276cc104e826a1f60bb945e56
BLAKE2b-256 855beb66b2c3fca299d7cd81064e8a1c1a5c7272c147a4cf048929c0743f00df

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