{"id":13439745,"url":"https://github.com/teovoinea/steganography","last_synced_at":"2026-04-05T01:31:25.153Z","repository":{"id":52422110,"uuid":"88576178","full_name":"teovoinea/steganography","owner":"teovoinea","description":"A simple steganography library written in rust","archived":false,"fork":false,"pushed_at":"2021-04-29T19:11:52.000Z","size":2309,"stargazers_count":103,"open_issues_count":3,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-12-14T01:52:46.759Z","etag":null,"topics":["crates","rust","steganography","steganography-library"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/teovoinea.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":"2017-04-18T03:14:44.000Z","updated_at":"2025-11-09T12:39:28.000Z","dependencies_parsed_at":"2022-09-12T13:02:45.773Z","dependency_job_id":null,"html_url":"https://github.com/teovoinea/steganography","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/teovoinea/steganography","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teovoinea%2Fsteganography","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teovoinea%2Fsteganography/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teovoinea%2Fsteganography/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teovoinea%2Fsteganography/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teovoinea","download_url":"https://codeload.github.com/teovoinea/steganography/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teovoinea%2Fsteganography/sbom","scorecard":{"id":874149,"data":{"date":"2025-08-11","repo":{"name":"github.com/teovoinea/steganography","commit":"81d2063d0b36efff2a5692146c66af4bcc0a8273"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/19 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T05:19:10.977Z","repository_id":52422110,"created_at":"2025-08-24T05:19:10.977Z","updated_at":"2025-08-24T05:19:10.977Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31421869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T00:25:07.052Z","status":"ssl_error","status_checked_at":"2026-04-05T00:25:05.923Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["crates","rust","steganography","steganography-library"],"created_at":"2024-07-31T03:01:16.742Z","updated_at":"2026-04-05T01:31:25.129Z","avatar_url":"https://github.com/teovoinea.png","language":"Rust","funding_links":[],"categories":["Libraries","Rust","库 Libraries","库","Machine Learning"],"sub_categories":["Image processing","图像处理 Image processing","图像处理"],"readme":"[![Build Status](https://dev.azure.com/voineateodor/voineateodor/_apis/build/status/teovoinea.steganography)](https://dev.azure.com/voineateodor/voineateodor/_build/latest?definitionId=1)\n[![Build Status](https://travis-ci.org/teovoinea/steganography.svg?branch=master)](https://travis-ci.org/teovoinea/steganography)\n[![Build status](https://ci.appveyor.com/api/projects/status/7u8v5jwu3w5ux23k/branch/master?svg=true)](https://ci.appveyor.com/project/teovoinea/steganography/branch/master)\n[![Crates.io](https://img.shields.io/crates/v/steganography.svg)](https://crates.io/crates/steganography)\n[![Crates.io](https://img.shields.io/crates/d/steganography.svg)](https://crates.io/crates/steganography)\n[![Docs.rs](https://docs.rs/steganography/badge.svg)](https://docs.rs/steganography)\n[![dependency status](https://deps.rs/repo/github/teovoinea/steganography/status.svg)](https://deps.rs/repo/github/teovoinea/steganography)\n\n# steganography\nA stable steganography library written in rust\n\n[Crates.io](https://crates.io/crates/steganography)\n\n## Usage\n\nAdd the following to the Cargo.toml in your project:\n\n```toml\n[dependencies]\nsteganography = \"*\"\n```\n\nand import using ```extern crate```:\n\n```rust\nextern crate steganography;\n\n/*\nuse steganography::encoder::*;\nuse steganography::decoder::*;\nuse steganography::util::*;\n*/\n```\n\n## Writing a message to a file\n\n```rust\n//Define a secret message to hide in out picture\nlet message = \"This is a steganography demo!\".to_string();\n//Convert our string to bytes\nlet payload = str_to_bytes(\u0026message);\n//Load the image where we want to embed our secret message\nlet destination_image = file_as_dynamic_image(\"example.jpg\".to_string());\n//Create an encoder\nlet enc = Encoder::new(payload, destination_image);\n//Encode our message into the alpha channel of the image\nlet result = enc.encode_alpha();\n//Save the new image\nsave_image_buffer(result, \"hidden_message.png\".to_string());\n```\n\n## Reading a message from a file\n\n```rust\n//Load the image with the secret message\nlet encoded_image = file_as_image_buffer(\"examples/decode_message.png\".to_string());\n//Create a decoder\nlet dec = Decoder::new(encoded_image);\n//Decode the image by reading the alpha channel\nlet out_buffer = dec.decode_alpha();\n//If there is no alpha, it's set to 255 by default so we filter those out\nlet clean_buffer: Vec\u003cu8\u003e = out_buffer.into_iter()\n                                    .filter(|b| {\n                                        *b != 0xff_u8\n                                    })\n                                    .collect();\n//Convert those bytes into a string we can read\nlet message = bytes_to_str(clean_buffer.as_slice());\n//Print it out!\nprintln!(\"{:?}\", message);\n```\n\n## Running the examples\n```bash\ncargo build --example example_encode\ncargo run --example example_encode\n```\n\n```bash\ncargo build --example example_decode\ncargo run --example example_decode\n```\n\n## Testing\n\n```bash\ncargo test -- --test-threads=1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteovoinea%2Fsteganography","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteovoinea%2Fsteganography","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteovoinea%2Fsteganography/lists"}