{"id":24295287,"url":"https://github.com/basemax/image-steganography-cli","last_synced_at":"2026-05-29T06:31:07.318Z","repository":{"id":272114912,"uuid":"915072756","full_name":"BaseMax/image-steganography-cli","owner":"BaseMax","description":"This program allows you to hide a secret message in an image using steganography techniques. The message is encoded in the least significant bits of the image's pixels and can be decoded later by extracting the hidden data.","archived":false,"fork":false,"pushed_at":"2025-01-11T02:02:47.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T05:55:48.157Z","etag":null,"topics":["image","image-py","image-python","image-steganographer","image-steganography","image-steganography-concept","image-steganography-in-jpeg","image-steganography-tool","py","py-image","python","python-image"],"latest_commit_sha":null,"homepage":"","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/BaseMax.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-10T22:47:28.000Z","updated_at":"2025-01-11T11:21:10.000Z","dependencies_parsed_at":"2025-01-12T09:00:19.135Z","dependency_job_id":"7083954f-6e37-4b08-b4eb-dda9eb78ba40","html_url":"https://github.com/BaseMax/image-steganography-cli","commit_stats":null,"previous_names":["basemax/image-steganography-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fimage-steganography-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fimage-steganography-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fimage-steganography-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fimage-steganography-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/image-steganography-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242163854,"owners_count":20082224,"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":["image","image-py","image-python","image-steganographer","image-steganography","image-steganography-concept","image-steganography-in-jpeg","image-steganography-tool","py","py-image","python","python-image"],"created_at":"2025-01-16T18:39:50.207Z","updated_at":"2026-05-29T06:31:07.311Z","avatar_url":"https://github.com/BaseMax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Steganography in Python\n\nThis program allows you to hide a secret message in an image using steganography techniques. The message is encoded in the least significant bits of the image's pixels and can be decoded later by extracting the hidden data.\n\n\u003e Build a tool that hides messages inside images using steganography.\n  \n## Features\n\n- **Encode**: Hide a secret message in an image.\n- **Decode**: Extract the hidden message from an image.\n\n## Prerequisites\n\n- Python 3.x\n- Pillow (Python Imaging Library)\n\nYou can install Pillow using the following command:\n\n```bash\npip install pillow\n```\n\n## Usage\n\n### Encoding a Message\n\nTo hide a message in an image, use the encode operation. This will encode the given message into the image and save the result as a new image.\n\n```\npython image_steganography.py encode \u003cimage_path\u003e \u003cmessage\u003e \u003coutput_path\u003e\n```\n\n- `\u003cimage_path\u003e`: The path to the image where you want to hide the message.\n- `\u003cmessage\u003e`: The secret message you want to hide in the image.\n- `\u003coutput_path\u003e`: The path where the new image with the hidden message will be saved.\n\n**Example:**\n\n```bash\npython image_steganography.py encode input_image.png \"Hello, World!\" output_image.png\n```\n\n### Decoding a Message\n\nTo extract the hidden message from an image, use the decode operation. This will decode the hidden message and display it.\n\n```bash\npython image_steganography.py decode \u003cimage_path\u003e\n```\n\n- `\u003cimage_path\u003e`: The path to the image containing the hidden message.\n\n**Example:**\n\n```bash\npython image_steganography.py decode output_image.png\n```\n\n## How It Works\n\n### Encoding\n\nThe program converts the secret message into binary.\n\nIt appends a delimiter ('1111111111111110') to mark the end of the message.\n\nEach pixel of the image is processed, and the least significant bit (LSB) of each color channel (RGB) is replaced with one bit of the binary message.\n\nThe modified pixels are saved to a new image file.\n\n### Decoding\n\nThe program reads the LSBs of each pixel's RGB channels.\n\nIt collects these bits to form the binary message.\n\nThe program looks for the delimiter ('1111111111111110') to determine the end of the hidden message.\n\nThe binary message is converted back into text and displayed.\n\n```\npython image_steganography.py encode input_image.png \"This is a secret message!\" output_image.png\nand\npython image_steganography.py decode output_image.png\n```\n\n### Notes\n\n- The program currently supports only RGB images. Ensure the image is in RGB mode before encoding.\n- The message is hidden in the least significant bits of each pixel. The more pixels the image has, the more data you can hide.\n- The delimiter ('1111111111111110') marks the end of the message to prevent accidental overlaps.\n\n## License\n\nThis project is licensed under the MIT License.\n\nCopyright 2025, Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fimage-steganography-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fimage-steganography-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fimage-steganography-cli/lists"}