{"id":20601154,"url":"https://github.com/dagenix/libpermute","last_synced_at":"2025-08-16T02:12:37.255Z","repository":{"id":57634842,"uuid":"426456929","full_name":"DaGenix/libpermute","owner":"DaGenix","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-23T20:31:31.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-22T15:28:31.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DaGenix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-10T02:22:39.000Z","updated_at":"2022-08-19T10:32:43.000Z","dependencies_parsed_at":"2022-09-26T20:20:46.154Z","dependency_job_id":null,"html_url":"https://github.com/DaGenix/libpermute","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/DaGenix/libpermute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaGenix%2Flibpermute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaGenix%2Flibpermute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaGenix%2Flibpermute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaGenix%2Flibpermute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaGenix","download_url":"https://codeload.github.com/DaGenix/libpermute/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaGenix%2Flibpermute/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270657715,"owners_count":24623465,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-16T09:08:50.867Z","updated_at":"2025-08-16T02:12:37.216Z","avatar_url":"https://github.com/DaGenix.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libpermute\n\n[![Crates.io](https://img.shields.io/crates/v/libpermute.svg)](https://crates.io/crates/libpermute)\n[![Documentation](https://docs.rs/libpermute/badge.svg)](https://docs.rs/libpermute)\n\nlibpermute is a `no_std` compatible library that provides a function\nto permute the items of a slice.\n\nlibpermute offers a few main features:\n\n1. Stability. The permutation algorithm won't be changed without a\nmajor version bump.\n\n2. Re-implementability. It should be relatively straightforward to re-implement the algorithm\nthis library uses in another library or in another language.\n\n3. Strength. Given an unpredictable permute_key, the permutation should also\nbe unpredictable - assuming that no one breaks the [Sha-256](https://en.wikipedia.org/wiki/SHA-2)\nor [ChaChar20](https://en.wikipedia.org/wiki/Salsa20) algorithms.\n\n# Example\n\n```rust\nuse libpermute::permute;\n\nfn main() {\n    const KEY: \u0026'static [u8] = \u0026[0, 1, 2, 3, 4, 5, 6, 7];\n    const INPUT: \u0026str = \"Hello World!\";\n\n    let mut buff = [0u8; INPUT.len()];\n    buff.copy_from_slice(INPUT.as_bytes());\n\n    permute(KEY, \u0026mut buff);\n\n    println!(\"RESULT: '{}'\", std::str::from_utf8(\u0026buff).unwrap());\n}\n```\n\n## No_std\n\nNo_std mode may be activated by disabling the \"std\" feature.\n\n## License\n\nThis project is licensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n  \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or\n  \u003chttps://opensource.org/licenses/MIT\u003e)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagenix%2Flibpermute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdagenix%2Flibpermute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdagenix%2Flibpermute/lists"}