{"id":18309550,"url":"https://github.com/sfuhrm/saphir-hash","last_synced_at":"2025-10-05T00:59:14.606Z","repository":{"id":16628558,"uuid":"19383648","full_name":"sfuhrm/saphir-hash","owner":"sfuhrm","description":"Cryptographic message digest algorithms as a Java library with standard JCA adapters","archived":false,"fork":false,"pushed_at":"2025-07-02T12:52:44.000Z","size":4723,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-20T19:41:35.047Z","etag":null,"topics":["crypto","crypto-library","cryptography","cryptography-library","cryptohash","digest","hash","hashing","hashing-algorithms","java","library","md5","messagedigest","ripemd160","sha1","sha2","sha256","tiger"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ChristosChristofidis/awesome-deep-learning","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sfuhrm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2014-05-02T17:59:37.000Z","updated_at":"2025-06-19T09:17:47.000Z","dependencies_parsed_at":"2023-12-19T18:51:56.029Z","dependency_job_id":"73f1f029-ccdf-4b23-9807-ed4e98e7f999","html_url":"https://github.com/sfuhrm/saphir-hash","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/sfuhrm/saphir-hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfuhrm%2Fsaphir-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfuhrm%2Fsaphir-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfuhrm%2Fsaphir-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfuhrm%2Fsaphir-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sfuhrm","download_url":"https://codeload.github.com/sfuhrm/saphir-hash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfuhrm%2Fsaphir-hash/sbom","scorecard":{"id":814190,"data":{"date":"2025-08-11","repo":{"name":"github.com/sfuhrm/saphir-hash","commit":"2f366787c8c403c16aed08c9a614d0c97931861b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 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":"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/jacoco-badge-ref.yml:1","Warn: no topLevel permission defined: .github/workflows/maven-release.yml:1","Warn: no topLevel permission defined: .github/workflows/maven.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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/jacoco-badge-ref.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/jacoco-badge-ref.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:105: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-release.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/sfuhrm/saphir-hash/maven.yml/master?enable=pin","Info:   0 out of  19 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md: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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact saphir-hash-parent-3.0.11 not signed: https://api.github.com/repos/sfuhrm/saphir-hash/releases/209166942","Warn: release artifact saphir-hash-parent-3.0.10 not signed: https://api.github.com/repos/sfuhrm/saphir-hash/releases/41588607","Warn: release artifact saphir-hash-parent-3.0.11 does not have provenance: https://api.github.com/repos/sfuhrm/saphir-hash/releases/209166942","Warn: release artifact saphir-hash-parent-3.0.10 does not have provenance: https://api.github.com/repos/sfuhrm/saphir-hash/releases/41588607"],"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'","Warn: branch protection not enabled for branch 'release-3.0.1'"],"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":"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":"SAST","score":3,"reason":"SAST tool is not run on all commits -- score normalized to 3","details":["Warn: 6 commits out of 19 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-23T13:51:00.299Z","repository_id":16628558,"created_at":"2025-08-23T13:51:00.300Z","updated_at":"2025-08-23T13:51:00.300Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278395910,"owners_count":25979690,"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-04T02:00:05.491Z","response_time":63,"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","crypto-library","cryptography","cryptography-library","cryptohash","digest","hash","hashing","hashing-algorithms","java","library","md5","messagedigest","ripemd160","sha1","sha2","sha256","tiger"],"created_at":"2024-11-05T16:11:47.608Z","updated_at":"2025-10-05T00:59:14.590Z","avatar_url":"https://github.com/sfuhrm.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Saphir Hash\n===================\n\n[![Java CI](https://github.com/sfuhrm/saphir-hash/actions/workflows/maven.yml/badge.svg)](https://github.com/sfuhrm/saphir-hash/actions/workflows/maven.yml)\n[![Coverage](https://raw.githubusercontent.com/sfuhrm/saphir-hash/master/.github/badges/jacoco.svg)](https://github.com/sfuhrm/saphir-hash/actions/workflows/jacoco-badge.yml)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.sfuhrm/saphir-hash-core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.sfuhrm/saphir-hash-core)\n[![javadoc](https://javadoc.io/badge2/de.sfuhrm/saphir-hash-core/javadoc.svg)](https://javadoc.io/doc/de.sfuhrm/saphir-hash-core)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nSaphir Hash is a Java library for calculating cryptographic message digests.\nThe library is derived from the sphlib 3.0 code that can be found here:\n\n[http://www.saphir2.com/sphlib/](http://www.saphir2.com/sphlib/ \"sphlib 3.0 project page\")\n\nThe repackaged, mavenized and JCA-enabled version 3.0.3 and later can be found here:\n\n[https://github.com/sfuhrm/saphir-hash](https://github.com/sfuhrm/saphir-hash \"github saphir-hash project page\")\n\nCompared to the standard SUN message digest algorithm this library\ncontains many experimental hash algorithms.\n\nList of algorithms:\n\n* BLAKE224,256,384,512\n* BMW224,256,384,512\n* CubeHash224,256,384,512\n* ECHO224,256,384,512\n* Fugue224,256,384,512\n* Groestl224,256,384,512\n* Hamsi224,256,384,512\n* HAVAL128_3,128_4,128_5,160_3,160_4,160_5,192_3,192_4,192_5,224_3,224_4,224_5,256_3,256_4,256_5\nJH224,256,384,512\n* Keccak224,256,384,512\n* Luffa224,256,384,512\n* MD2\n* MD4\n* MD5\n* PANAMA\n* RadioGatun32,64\n* RIPEMD128,160\n* SHA0,1,224,256,384,512\n* Shabal192,224,256,384,512\n* SHAvite224,256,384,512\n* SIMD224,256,384,512\n* Skein224,256,384,512\n* Tiger2\n* Tiger\n* Whirlpool0,1\n* Whirlpool\n\nDocumentation\n----------------\n\nYou can view the api docs online at [javadoc.io](https://javadoc.io/doc/de.sfuhrm/saphir-hash-core).\nThe documentation can be generated with the command\n\n```bash\nmvn javadoc:aggregate\n```\n\nBuilding\n----------------\n\nThe library is built with Apache Maven. You can build it by\ndoing\n\n```bash\nmvn clean package\n```\n\nin the top library folder.\n\nAuthors\n----------------\n\nThe original library was written by the \"Projet RNRT SAPHIR\",\nwhich is a research project sponsored by the French government;\nproject members are public and private organizations:\n\n* Cryptolog\n* ANSSI\n* École Normale Superieure\n* France Telecom\n* Gemalto\n\nProjet RNRT SAPHIR was continued into Projet RNRT SAPHIR2, with four new additional members:\n\n* Cassidian\n* Morpho\n* INRIA\n* UVSQ\n\nWe use the \"Projet RNRT SAPHIR\" expression to designate both SAPHIR and SAPHIR2.\n\nAll the actual code has been written by:\n\n   Thomas Pornin \u0026lt;thomas.pornin at cryptolog.com\u0026gt;\n\nThe additions were written by:\n\n   Stephan Fuhrmann \u0026lt;s at sfuhrm.de\u0026gt;\n\nList of changes\n----------------\n\nThe following is a rough list of changes and additions done by me,\nStephan Fuhrmann:\n\n* Moved project structure to modern maven build with subprojects.\n* Moved tests to JUnit tests.\n* Created JCA adapter to the digest algorithms.\n* Created speed benchmark code to compare against SUN and BouncyCastle implementations.\n\nMaven dependencies\n----------------\n\nYou can use the code using the Maven repository.\n\nThe core classes without JCA support is in this dependency (version may change):\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ede.sfuhrm\u003c/groupId\u003e\n  \u003cartifactId\u003esaphir-hash-core\u003c/artifactId\u003e\n  \u003cversion\u003e3.0.10\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThe JCA provider is contained in this dependency (version may change):\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ede.sfuhrm\u003c/groupId\u003e\n  \u003cartifactId\u003esaphir-hash-jca\u003c/artifactId\u003e\n  \u003cversion\u003e3.0.10\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nExample usage\n----------------\n\nThe following short example directly instantiates\nfr.cryptohash.JCAProvider and calculates a digest over\nthe String \"test\" in the platforms default character encoding:\n\n```java\nimport fr.cryptohash.JCAProvider;\n...\n\nMessageDigest mdSH = MessageDigest.getInstance(\"MD5\", new JCAProvider());\nmdSH.update(\"test\".getBytes());\nbyte mdSHDigest[] = mdSH.digest();\n```\n\nPerformance discussion\n----------------\n\nThe following image shows the performance of different algorithm implementations\nfor a data size of 1M. The numbers are in nanoseconds:\n\n![Performance Chart](graphics/Crypto-Perf.png \"Algorithm implementations for 1M of data\")\n\nThe implementations are:\n\n* JDK 1.8.0_121\n* Bouncy Castle 1.46\n* Saphir Hash JCA 3.0.3\n\nLicense\n----------------\n\nThe original library is in a MIT-like license, the rest is in a BSD-like license.\n\nSee the file LICENSE.md for a detailed discussion.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfuhrm%2Fsaphir-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsfuhrm%2Fsaphir-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfuhrm%2Fsaphir-hash/lists"}