{"id":22509195,"url":"https://github.com/adrg/lsbsteg","last_synced_at":"2025-10-16T15:02:27.798Z","repository":{"id":36317571,"uuid":"40622225","full_name":"adrg/lsbsteg","owner":"adrg","description":"Embeds messages into images using the Least Significant Bit algorithm","archived":false,"fork":false,"pushed_at":"2023-01-04T23:10:31.000Z","size":4,"stargazers_count":11,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T09:21:35.988Z","etag":null,"topics":["algorithm","criptography","image-processing","pycrypto","python","steganography"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-12T20:19:23.000Z","updated_at":"2023-12-12T07:45:58.000Z","dependencies_parsed_at":"2023-01-17T00:24:44.178Z","dependency_job_id":null,"html_url":"https://github.com/adrg/lsbsteg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adrg/lsbsteg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Flsbsteg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Flsbsteg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Flsbsteg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Flsbsteg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrg","download_url":"https://codeload.github.com/adrg/lsbsteg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Flsbsteg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259858020,"owners_count":22922889,"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":["algorithm","criptography","image-processing","pycrypto","python","steganography"],"created_at":"2024-12-07T01:28:04.605Z","updated_at":"2025-10-16T15:02:22.705Z","avatar_url":"https://github.com/adrg.png","language":"Python","readme":"lsbsteg\n=======\n[![License: MIT](http://img.shields.io/badge/license-MIT-red.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n\nlsbsteg is a small Python 3 application which embeds text messages into images\nusing the Least Significant Bit steganographic algorithm.\n\nThe basic idea of the algorithm is to take each individual bit of the message\nand set it as the least significant bit of each component of each pixel of\nthe image. Usually, a pixel has Red, Green, Blue components and sometimes\nan Alpha component. Because the values of these components change very little\nif the least significant bit is changed, the color difference is not\nparticularly noticeable, if at all.\n\n## Requirements\n- **pillow**\n- **pycrypto** (optional)\n\nIf you are on a Linux system, you most likely have the required dependencies\nalready. If you don't, they can be easily installed using pip.\n\n```bash\nsudo pip3 install -U pillow\nsudo pip3 install -U pycrypto\n```\n\nIf you get 'decoder not available' errors when running the application make\nsure you have all the pillow dependencies installed:\n\n```bash\nsudo apt-get install libjpeg-dev zlib1g-dev\nsudo pip3 install -I pillow\n```\n\n## Usage\n```bash\nlsbsteg.py [-h] [-v] {embed,extract} ...\n```\n\nThe application can both embed messages into images and extract them.\n\n### Embedding messages into images\n```bash\nlsbsteg.py embed [-h] [-o OUT] [-k KEY] IMAGE MESSAGE\n\npositional arguments:\n    IMAGE      source image\n    MESSAGE    message to embed into the image\n\noptional arguments:\n    -o OUT, --output OUT    generated output image containing the specified message\n    -k KEY, --key KEY       key used to encrypt the message before embedding it\n```\n\n* Note: if the output image is not provided, the message is saved in the input image.\n\n**Without encryption**\n```bash\nlsbsteg.py embed -o output.png input.png \"message to embed\"\n```\n\n**With encryption**\n```bash\nlsbsteg.py embed -o output.png -k passphraze input.png \"message to embed\"\n```\n\nBecause JPEG uses lossy compression, it cannot be specified as an output image\nformat.  Instead, it can be converted to a lossless compression format like\nPNG even if the input image is a JPEG image.\n\n```bash\nlsbsteg.py embed -o output.png input.jpg \"the message you want to embed\"\n```\n\n* Note: if pycrypto is not installed, the application does not have encryption support.\n\n### Extracting messages from images\n```bash\nlsbsteg.py extract [-h] [-k KEY] IMAGE\n\npositional arguments:\n    IMAGE    image containing message\n\noptional arguments:\n    -k KEY, --key KEY    key to decrypt the extracted message\n```\n\n**Without encryption**\n```bash\nlsbsteg.py extract output.png\n```\n\n**With encryption**\n```bash\nlsbsteg.py extract -k passphraze output.png\n```\n\n## License\nCopyright (c) 2015 Adrian-George Bostan.\n\nThis project is licensed under the [MIT license](http://opensource.org/licenses/MIT). See LICENSE for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrg%2Flsbsteg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrg%2Flsbsteg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrg%2Flsbsteg/lists"}