{"id":13419647,"url":"https://github.com/cedricbonhomme/Stegano","last_synced_at":"2025-03-15T05:32:45.252Z","repository":{"id":45034120,"uuid":"46914342","full_name":"cedricbonhomme/Stegano","owner":"cedricbonhomme","description":"A pure Python steganography module.","archived":false,"fork":false,"pushed_at":"2024-04-14T20:09:45.000Z","size":19799,"stargazers_count":481,"open_issues_count":0,"forks_count":64,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-05-02T05:09:32.556Z","etag":null,"topics":["hidden-message","image-processing","secret","security","steganalysis","steganography"],"latest_commit_sha":null,"homepage":"https://stegano.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedricbonhomme.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-26T08:41:18.000Z","updated_at":"2024-05-07T06:29:10.691Z","dependencies_parsed_at":"2023-10-03T05:55:45.673Z","dependency_job_id":"27c413df-79e3-4d29-95fa-8a900ca8a741","html_url":"https://github.com/cedricbonhomme/Stegano","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedricbonhomme%2FStegano","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedricbonhomme%2FStegano/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedricbonhomme%2FStegano/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedricbonhomme%2FStegano/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedricbonhomme","download_url":"https://codeload.github.com/cedricbonhomme/Stegano/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221548044,"owners_count":16840957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hidden-message","image-processing","secret","security","steganalysis","steganography"],"created_at":"2024-07-30T22:01:18.900Z","updated_at":"2025-03-15T05:32:45.244Z","avatar_url":"https://github.com/cedricbonhomme.png","language":"Python","funding_links":["https://github.com/sponsors/cedricbonhomme"],"categories":["Python"],"sub_categories":[],"readme":"# Stegano\n\n[![Workflow](https://github.com/cedricbonhomme/Stegano/workflows/Python%20application/badge.svg?style=flat-square)](https://github.com/cedricbonhomme/Stegano/actions?query=workflow%3A%22Python+application%22)\n\n[Stegano](https://github.com/cedricbonhomme/Stegano), a pure Python Steganography\nmodule.\n\nSteganography is the art and science of writing hidden messages in such a way\nthat no one, apart from the sender and intended recipient, suspects the\nexistence of the message, a form of security through obscurity. Consequently,\nfunctions provided by Stegano only hide messages, without encryption.\nSteganography is often used with cryptography.\n\n\n## Installation\n\n\n```bash\n$ poetry install stegano\n```\n\nYou will be able to use Stegano in your Python programs.\n\nIf you only want to install Stegano as a command line tool:\n\n```bash\n$ pipx install stegano\n```\n\npipx installs scripts (system wide available) provided by Python packages into\nseparate virtualenvs to shield them from your system and each other.\n\n\n## Usage\n\nA [tutorial](https://stegano.readthedocs.io) is available.\n\n\n## Use Stegano as a library in your Python program\n\nIf you want to use Stegano in your Python program you just have to import the\nappropriate steganography technique. For example:\n\n```python\n\u003e\u003e\u003e from stegano import lsb\n\u003e\u003e\u003e secret = lsb.hide(\"./tests/sample-files/Lenna.png\", \"Hello World\")\n\u003e\u003e\u003e secret.save(\"./Lenna-secret.png\")\n\u003e\u003e\u003e\n\u003e\u003e\u003e clear_message = lsb.reveal(\"./Lenna-secret.png\")\n```\n\n\n## Use Stegano as a command line tool\n\n### Hide and reveal a message\n\n```bash\n$ stegano-lsb hide -i ./tests/sample-files/Lenna.png -m \"Secret Message\" -o Lena1.png\n$ stegano-lsb reveal -i Lena1.png\nSecret Message\n```\n\n\n### Hide the message with the Sieve of Eratosthenes\n\n```bash\n$ stegano-lsb hide -i ./tests/sample-files/Lenna.png -m 'Secret Message' --generator eratosthenes -o Lena2.png\n```\n\nThe message will be scattered in the picture, following a set described by the\nSieve of Eratosthenes. Other sets are available. You can also use your own\ngenerators.\n\nThis will make a steganalysis more complicated.\n\n\n## Running the tests\n\n```bash\n$ python -m unittest discover -v\n```\n\nRunning the static type checker:\n\n```bash\n$ mypy stegano\n```\n\n\n## Contributions\n\nContributions are welcome. If you want to contribute to Stegano I highly\nrecommend you to install it in a Python virtual environment with poetry.\n\n\n## Donations\n\nIf you wish and if you like Stegano, you can donate via GitHub Sponsors:\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/cedricbonhomme)](https://github.com/sponsors/cedricbonhomme)\n\nor with Bitcoin to this address:  \nbc1q56u6sj7cvlwu58v5lemljcvkh7v2gc3tv8mj0e\n\nThank you !\n\n\n## License\n\nThis software is licensed under\n[GNU General Public License version 3](https://www.gnu.org/licenses/gpl-3.0.html)\n\nCopyright (C) 2010-2025 [Cédric Bonhomme](https://www.cedricbonhomme.org)\n\nFor more information, [the list of authors and contributors](CONTRIBUTORS.md) is available.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedricbonhomme%2FStegano","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedricbonhomme%2FStegano","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedricbonhomme%2FStegano/lists"}