stegano 0.11.5
pip install stegano
Released:
A pure Python Steganography module.
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU General Public License v3 or later (GPLv3+) (GPL-3.0-or-later)
- Author: Cédric Bonhomme
- Tags Steganography, Security, Stegano
- Requires: Python <4.0, >=3.10
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Stegano
Stegano, a pure Python Steganography module.
Steganography is the art and science of writing hidden messages in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message, a form of security through obscurity. Consequently, functions provided by Stegano only hide messages, without encryption. Steganography is often used with cryptography.
Installation
$ poetry install stegano
You will be able to use Stegano in your Python programs.
If you only want to install Stegano as a command line tool:
$ pipx install stegano
pipx installs scripts (system wide available) provided by Python packages into separate virtualenvs to shield them from your system and each other.
Usage
A tutorial is available.
Use Stegano as a library in your Python program
If you want to use Stegano in your Python program you just have to import the appropriate steganography technique. For example:
>>> from stegano import lsb
>>> secret = lsb.hide("./tests/sample-files/Lenna.png", "Hello World")
>>> secret.save("./Lenna-secret.png")
>>>
>>> clear_message = lsb.reveal("./Lenna-secret.png")
Use Stegano as a command line tool
Hide and reveal a message
$ stegano-lsb hide -i ./tests/sample-files/Lenna.png -m "Secret Message" -o Lena1.png
$ stegano-lsb reveal -i Lena1.png
Secret Message
Hide the message with the Sieve of Eratosthenes
$ stegano-lsb hide -i ./tests/sample-files/Lenna.png -m 'Secret Message' --generator eratosthenes -o Lena2.png
The message will be scattered in the picture, following a set described by the Sieve of Eratosthenes. Other sets are available. You can also use your own generators.
This will make a steganalysis more complicated.
Running the tests
$ python -m unittest discover -v
Running the static type checker:
$ mypy stegano
Contributions
Contributions are welcome. If you want to contribute to Stegano I highly recommend you to install it in a Python virtual environment with poetry.
Donations
If you wish and if you like Stegano, you can donate via GitHub Sponsors:
or with Bitcoin to this address:
bc1q56u6sj7cvlwu58v5lemljcvkh7v2gc3tv8mj0e
Thank you !
License
This software is licensed under GNU General Public License version 3
Copyright (C) 2010-2025 Cédric Bonhomme
For more information, the list of authors and contributors is available.
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU General Public License v3 or later (GPLv3+) (GPL-3.0-or-later)
- Author: Cédric Bonhomme
- Tags Steganography, Security, Stegano
- Requires: Python <4.0, >=3.10
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
File details
Details for the file stegano-0.11.5.tar.gz
.
File metadata
- Download URL: stegano-0.11.5.tar.gz
- Upload date:
- Size: 35.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c66a18653a11de4471535a47059a86a69aec87f18647b06472686c97a595771 |
|
MD5 | 8f82a58689d91c61b8aa17e3e5961f9c |
|
BLAKE2b-256 | 2ebe825cab4e5db009fd37fbdc91a7a17396401c69ae4f204fb28dd3b86a03bd |
Provenance
The following attestation bundles were made for stegano-0.11.5.tar.gz
:
Publisher:
release.yml
on cedricbonhomme/Stegano
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
stegano-0.11.5.tar.gz
- Subject digest:
7c66a18653a11de4471535a47059a86a69aec87f18647b06472686c97a595771
- Sigstore transparency entry: 171081329
- Sigstore integration time:
- Permalink:
cedricbonhomme/Stegano@2e8b0fdec9d3def7dadb0d253fe22c3bad87dec3
- Branch / Tag:
refs/tags/v0.11.5
- Owner: https://github.com/cedricbonhomme
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@2e8b0fdec9d3def7dadb0d253fe22c3bad87dec3
- Trigger Event:
release
- Statement type:
File details
Details for the file stegano-0.11.5-py3-none-any.whl
.
File metadata
- Download URL: stegano-0.11.5-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd614ad9c3e88ac0743b8bf28154b828bca2ea720fd08929b0fa2c18c082da0a |
|
MD5 | 998f80887b15c4bcbb2ecae71340ca70 |
|
BLAKE2b-256 | 11811ad307e52ae567d0b7171f733889614535caaeaab19134a1eefb9c7006e8 |
Provenance
The following attestation bundles were made for stegano-0.11.5-py3-none-any.whl
:
Publisher:
release.yml
on cedricbonhomme/Stegano
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
stegano-0.11.5-py3-none-any.whl
- Subject digest:
fd614ad9c3e88ac0743b8bf28154b828bca2ea720fd08929b0fa2c18c082da0a
- Sigstore transparency entry: 171081331
- Sigstore integration time:
- Permalink:
cedricbonhomme/Stegano@2e8b0fdec9d3def7dadb0d253fe22c3bad87dec3
- Branch / Tag:
refs/tags/v0.11.5
- Owner: https://github.com/cedricbonhomme
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@2e8b0fdec9d3def7dadb0d253fe22c3bad87dec3
- Trigger Event:
release
- Statement type: