{"id":33939515,"url":"https://github.com/c0dearm/sharks","last_synced_at":"2025-12-12T15:33:09.404Z","repository":{"id":41359268,"uuid":"233082800","full_name":"c0dearm/sharks","owner":"c0dearm","description":"Fast, small and secure Shamir's Secret Sharing library crate","archived":false,"fork":false,"pushed_at":"2023-10-23T23:27:00.000Z","size":53,"stargazers_count":64,"open_issues_count":6,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-07T05:57:35.474Z","etag":null,"topics":["crypto","cryptography","rust","rust-crate","rust-lang","rust-library","secret-management","secret-sharing","shamir-secret-sharing"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/sharks","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/c0dearm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-01-10T16:06:31.000Z","updated_at":"2025-04-21T06:09:39.000Z","dependencies_parsed_at":"2024-01-16T00:22:46.890Z","dependency_job_id":"2f81d624-f36c-4291-b598-dd48570b4719","html_url":"https://github.com/c0dearm/sharks","commit_stats":{"total_commits":33,"total_committers":8,"mean_commits":4.125,"dds":0.6363636363636364,"last_synced_commit":"e7e23ba899c2a80d622f57f96c61e814325f8e20"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c0dearm/sharks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0dearm%2Fsharks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0dearm%2Fsharks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0dearm%2Fsharks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0dearm%2Fsharks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c0dearm","download_url":"https://codeload.github.com/c0dearm/sharks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0dearm%2Fsharks/sbom","scorecard":{"id":260887,"data":{"date":"2025-08-11","repo":{"name":"github.com/c0dearm/sharks","commit":"e7e23ba899c2a80d622f57f96c61e814325f8e20"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Code-Review","score":3,"reason":"Found 10/30 approved changesets -- score normalized to 3","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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rust.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:100: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/c0dearm/sharks/rust.yml/master?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  14 third-party GitHubAction dependencies pinned"],"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":"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":"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":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: RustCargoFuzzer integration found: fuzz/fuzz_targets/deserialize_share.rs:3","Info: RustCargoFuzzer integration found: fuzz/fuzz_targets/generate_shares.rs:2","Info: RustCargoFuzzer integration found: fuzz/fuzz_targets/recover.rs:2","Info: RustCargoFuzzer integration found: fuzz/fuzz_targets/serialize_share.rs:2"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Warn: project license file does not contain an FSF or OSI license."],"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 11 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-17T10:48:45.210Z","repository_id":41359268,"created_at":"2025-08-17T10:48:45.210Z","updated_at":"2025-08-17T10:48:45.210Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27685505,"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-12-12T02:00:06.775Z","response_time":129,"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":["crypto","cryptography","rust","rust-crate","rust-lang","rust-library","secret-management","secret-sharing","shamir-secret-sharing"],"created_at":"2025-12-12T15:33:08.651Z","updated_at":"2025-12-12T15:33:09.397Z","avatar_url":"https://github.com/c0dearm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sharks\n\n[![Rust](https://github.com/c0dearm/sharks/workflows/Rust/badge.svg?branch=master)](https://github.com/c0dearm/sharks/actions)\n[![Crates](https://img.shields.io/crates/v/sharks.svg)](https://crates.io/crates/sharks)\n[![Docs](https://docs.rs/sharks/badge.svg)](https://docs.rs/sharks)\n[![Codecov](https://codecov.io/gh/c0dearm/sharks/branch/master/graph/badge.svg)](https://codecov.io/gh/c0dearm/sharks)\n[![License](https://camo.githubusercontent.com/47069b7e06b64b608c692a8a7f40bc6915cf629c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865322e302532464d49542d626c75652e737667)](https://github.com/c0dearm/sharks/blob/master/COPYRIGHT)\n\nFast, small and secure [Shamir's Secret Sharing](https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing) library crate\n\nDocumentation:\n-    [API reference (docs.rs)](https://docs.rs/sharks)\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nsharks = \"0.4\"\n```\n\nIf your environment doesn't support `std`:\n\n```toml\n[dependencies]\nsharks = { version = \"0.4\", default-features = false }\n```\n\nTo get started using Sharks, see the [Rust docs](https://docs.rs/sharks)\n\n## Features\n\n### Developer friendly\nThe API is simple and to the point, with minimal configuration.\n\n### Fast and small\nThe code is as idiomatic and clean as possible, with minimum external dependencies.\n\n### Secure by design\nThe implementation forbids the user to choose parameters that would result in an insecure application,\nlike generating more shares than what's allowed by the finite field length.\n\n## Limitations\n\nBecause the Galois finite field it uses is [GF256](https://en.wikipedia.org/wiki/Finite_field#GF(p2)_for_an_odd_prime_p),\nonly up to 255 shares can be generated for a given secret. A larger number would be insecure as shares would start duplicating.\nNevertheless, the secret can be arbitrarily long as computations are performed on single byte chunks.\n\n## Testing\n\nThis crate contains both unit and benchmark tests (as well as the examples included in the docs).\nYou can run them with `cargo test` and `cargo bench`.\n\n### Benchmark results [min mean max]\n\n| CPU                                       | obtain_shares_dealer            | step_shares_dealer              | recover_secret                  | share_from_bytes                | share_to_bytes                  |\n| ----------------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |\n| Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz  | [1.4321 us 1.4339 us 1.4357 us] | [1.3385 ns 1.3456 ns 1.3552 ns] | [228.77 us 232.17 us 236.23 us] | [24.688 ns 25.083 ns 25.551 ns] | [22.832 ns 22.910 ns 22.995 ns] |\n| Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz  | [1.3439 us 1.3499 us 1.3562 us] | [1.5416 ns 1.5446 ns 1.5481 ns] | [197.46 us 198.37 us 199.22 us] | [20.455 ns 20.486 ns 20.518 ns] | [18.726 ns 18.850 ns 18.993 ns] |\n| Apple M1 ARM (Macbook Air)                | [3.3367 us 3.3629 us 3.4058 us] | [741.75 ps 742.65 ps 743.52 ps] | [210.14 us 210.23 us 210.34 us] | [27.567 ns 27.602 ns 27.650 ns] | [26.716 ns 26.735 ns 26.755 ns] |\n\n# Contributing\n\nIf you find a vulnerability, bug or would like a new feature, [open a new issue](https://github.com/c0dearm/sharks/issues/new).\n\nTo introduce your changes into the codebase, submit a Pull Request.\n\nMany thanks!\n\n# License\n\nSharks is distributed under the terms of both the MIT license and the\nApache License (Version 2.0).\n\nSee [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT), and\n[COPYRIGHT](COPYRIGHT) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0dearm%2Fsharks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc0dearm%2Fsharks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0dearm%2Fsharks/lists"}