{"id":37428110,"url":"https://github.com/dcdpr/libbech32-java","last_synced_at":"2026-01-16T06:32:34.815Z","repository":{"id":48704982,"uuid":"179909821","full_name":"dcdpr/libbech32-java","owner":"dcdpr","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-13T16:24:36.000Z","size":49,"stargazers_count":2,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-12T00:57:02.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcdpr.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":"2019-04-07T02:34:45.000Z","updated_at":"2024-05-07T08:44:29.000Z","dependencies_parsed_at":"2022-09-26T22:01:44.082Z","dependency_job_id":null,"html_url":"https://github.com/dcdpr/libbech32-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcdpr/libbech32-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Flibbech32-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Flibbech32-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Flibbech32-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Flibbech32-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcdpr","download_url":"https://codeload.github.com/dcdpr/libbech32-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Flibbech32-java/sbom","scorecard":{"id":329530,"data":{"date":"2025-08-11","repo":{"name":"github.com/dcdpr/libbech32-java","commit":"c670f94b68f8e3649f4756a3a801c8de0a01c75e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"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":"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":"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":"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":"Code-Review","score":8,"reason":"Found 8/10 approved changesets -- score normalized to 8","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":"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":"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":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: BSD 3-Clause \"New\" or \"Revised\" 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":"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":"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 22 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-18T03:14:34.701Z","repository_id":48704982,"created_at":"2025-08-18T03:14:34.701Z","updated_at":"2025-08-18T03:14:34.701Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2026-01-16T06:32:34.730Z","updated_at":"2026-01-16T06:32:34.799Z","avatar_url":"https://github.com/dcdpr.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libbech32-java\n\nThis is a Java implementation of \"Bech32:\" a checksummed base32 data\nencoding format. It is primarily used as a new bitcoin address format\nspecified by [BIP 0173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki). \n\nThe libbech32-java package has no external dependencies, except `JUnit` for testing.\n\n## Getting libbech32-java\n\nTo use libbech32-java in your project, you can get\nthe package from Maven Central:\n\nTo use the package, you need the following Maven dependency:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003edesign.contract\u003c/groupId\u003e\n  \u003cartifactId\u003elibbech32\u003c/artifactId\u003e\n  \u003cversion\u003e1.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nor download the jar from the Maven repository.\n\n## Usage Examples\n\n### Encoding Example\n\n```java\nimport design.contract.bech32.Bech32;\n\npublic class EncodingExample {\n\n    public static void main(String[] args) {\n\n        // simple human readable part with data part\n        String humanReadablePart = \"hello\";\n        char[] data = {14, 15, 3, 31, 13};\n        String b = Bech32.encode(humanReadablePart, data);\n\n        System.out.println(b);\n        // prints \"hello1w0rldjn365x\" : \"hello\" + Bech32.SEPARATOR + encoded data + 6 char checksum\n    }\n}\n```\n\n### Decoding Example\n\n```java\nimport design.contract.bech32.Bech32;\n\npublic class DecodingExample {\n\n    public static void main(String[] args) {\n        \n        DecodedResult decodedResult = Bech32.decode(\"hello1w0rldjn365x\");\n\n        assert decodedResult.getHrp().equals(\"hello\");\n        assert decodedResult.getDp().length == 5;\n        assert decodedResult.getEncoding() == DecodedResult.Encoding.BECH32M;\n    }\n}\n```\n\n## Building libbech32-java\n\nTo build libbech32-java, you will need:\n\n* Java (8+)\n* Maven\n\nlibbech32-java uses a standard maven build process:\n\n```console\nmvn install\n```\n\nYou can also run just the tests without installing:\n\n```console\nmvn test\n```\n\n## Regarding bech32 checksums\n\nThe Bech32 data encoding format was first proposed by Pieter Wuille in early 2017 in\n[BIP 0173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki). Later, in November 2019, Pieter published\nsome research that a constant used in the bech32 checksum algorithm (value = 1) may not be\noptimal for the error detecting properties of bech32. In February 2021, Pieter published\n[BIP 0350](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki) reporting that \"exhaustive analysis\" showed the best possible constant value is\n0x2bc830a3. This improved variant of Bech32 is called \"Bech32m\".\n\nWhen decoding a possible bech32 encoded string, libbech32 returns an enum value showing whether bech32m or bech32\nwas used to encode. This can be seen in the example above.\n\nWhen encoding data, libbech32 defaults to using the new constant value of 0x2bc830a3. If the original constant value\nof 1 is desired, then the following function may be used:\n\n### Usage Example\n\n```java\n    /// ... as above ...\n\n    String b = Bech32.encodeUsingOriginalConstant(humanReadablePart, data);\n\n    /// ... as above ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcdpr%2Flibbech32-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcdpr%2Flibbech32-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcdpr%2Flibbech32-java/lists"}