{"id":16727689,"url":"https://github.com/poiscript/evpkdf","last_synced_at":"2025-10-11T08:14:08.792Z","repository":{"id":39742970,"uuid":"244101737","full_name":"PoiScript/evpkdf","owner":"PoiScript","description":"Rust implementation of OpenSSL EVP_bytesToKey function.","archived":false,"fork":false,"pushed_at":"2023-03-19T11:25:42.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-31T19:22:16.893Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PoiScript.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":"2020-03-01T06:51:42.000Z","updated_at":"2023-01-25T16:38:24.000Z","dependencies_parsed_at":"2025-02-17T02:33:53.409Z","dependency_job_id":"c5bfa34b-5acd-4dfb-8bbe-88373529dd8f","html_url":"https://github.com/PoiScript/evpkdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PoiScript/evpkdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoiScript%2Fevpkdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoiScript%2Fevpkdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoiScript%2Fevpkdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoiScript%2Fevpkdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PoiScript","download_url":"https://codeload.github.com/PoiScript/evpkdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoiScript%2Fevpkdf/sbom","scorecard":{"id":110898,"data":{"date":"2025-08-11","repo":{"name":"github.com/PoiScript/evpkdf","commit":"21d495ad7bc9f5e305fbbd080996678906f3a63e"},"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":"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":"Code-Review","score":1,"reason":"Found 2/11 approved changesets -- score normalized to 1","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":"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":"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/test.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/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/PoiScript/evpkdf/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/PoiScript/evpkdf/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/PoiScript/evpkdf/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/PoiScript/evpkdf/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/PoiScript/evpkdf/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/PoiScript/evpkdf/test.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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 2 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-15T12:11:20.210Z","repository_id":39742970,"created_at":"2025-08-15T12:11:20.210Z","updated_at":"2025-08-15T12:11:20.210Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006755,"owners_count":26084148,"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-10-11T02:00:06.511Z","response_time":55,"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-10-12T23:06:38.717Z","updated_at":"2025-10-11T08:14:08.765Z","avatar_url":"https://github.com/PoiScript.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# evpkdf\n\nRust implementation of OpenSSL [EVP_bytesToKey] function.\n\n`evpkdf` derives key from the given password and salt.\n\nNotice that this approach is **too weak** for modern standard\nnow. Newer applications should choice a more modern algorithm\nlike [argon2], [bcrypt], [pbkdf2] or [scrypt].\n\n[EVP_bytesToKey]: https://www.openssl.org/docs/man1.0.2/man3/EVP_BytesToKey.html\n[argon2]: https://crates.io/crates/argon2\n[bcrypt]: https://crates.io/crates/bcrypt\n[pbkdf2]: https://crates.io/crates/pbkdf2\n[scrypt]: https://crates.io/crates/scrypt\n\n## Basic Usage\n\n```rust\nuse evpkdf::evpkdf;\nuse hex_literal::hex;\nuse md5::Md5;   // from md-5 crate\nuse sha1::Sha1; // from sha-1 crate\n\nlet mut output = [];\n\nevpkdf::\u003cMd5\u003e(b\"password\", b\"saltsalt\", 1000, \u0026mut output);\n\nassert_eq!(output, []);\n\nlet mut output = [0; 128 / 8];\n\nevpkdf::\u003cMd5\u003e(b\"password\", b\"saltsalt\", 1000, \u0026mut output);\n\nassert_eq!(output, hex!(\"8006de5d2a5d15f9bbdb8f40196d5af1\"));\n\nlet mut output = [0; 128 / 8];\n\nevpkdf::\u003cSha1\u003e(b\"password\", b\"saltsalt\", 1000, \u0026mut output);\n\nassert_eq!(output, hex!(\"f8833429b112582447bc66f433497f75\"));\n```\n\n## Compatible with crypto-js\n\nBelow sinppet generates the same result as\n`CryptoJS.kdf.OpenSSL.execute('password', 256 / 32, 128 / 32, 'saltsalt')`.\n\n```rust\nuse evpkdf::evpkdf;\nuse hex_literal::hex;\nuse md5::Md5;   // from md-5 crate\n\nconst KEY_SIZE: usize = 256;\nconst IV_SIZE: usize = 128;\n\nlet mut output = [0; (KEY_SIZE + IV_SIZE) / 8];\n\nevpkdf::\u003cMd5\u003e(b\"password\", b\"saltsalt\", 1, \u0026mut output);\n\nlet (key, iv) = output.split_at(KEY_SIZE / 8);\n\nassert_eq!(\n    key,\n    hex!(\"fdbdf3419fff98bdb0241390f62a9db35f4aba29d77566377997314ebfc709f2\")\n);\n\nassert_eq!(\n    iv,\n    hex!(\"0b5ca7b1081f94b1ac12e3c8ba87d05a\")\n);\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoiscript%2Fevpkdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoiscript%2Fevpkdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoiscript%2Fevpkdf/lists"}