{"id":37405763,"url":"https://github.com/pranamphd/digipin-rs","last_synced_at":"2026-01-16T05:50:01.566Z","repository":{"id":331822821,"uuid":"1130875756","full_name":"pranamphd/digipin-rs","owner":"pranamphd","description":"Rust implementation of the DIGIPIN geo-coded addressing system.","archived":false,"fork":false,"pushed_at":"2026-01-13T05:55:58.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T06:49:01.413Z","etag":null,"topics":["address-validation","digipin","geo-coding","india","pincode","zipcode"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/digipin-rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pranamphd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-09T06:23:03.000Z","updated_at":"2026-01-13T05:55:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pranamphd/digipin-rs","commit_stats":null,"previous_names":["pranamphd/digipin","pranamphd/digipin-rs"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/pranamphd/digipin-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranamphd%2Fdigipin-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranamphd%2Fdigipin-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranamphd%2Fdigipin-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranamphd%2Fdigipin-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pranamphd","download_url":"https://codeload.github.com/pranamphd/digipin-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranamphd%2Fdigipin-rs/sbom","scorecard":{"id":1241367,"data":{"date":"2026-01-13T05:56:06Z","repo":{"name":"github.com/pranamphd/digipin-rs","commit":"cf34a4af2b851cf5f7b1b25dd7ec4228a45fb0de"},"scorecard":{"version":"v5.3.0","commit":"c22063e786c11f9dd714d777a687ff7c4599b600"},"score":6.2,"checks":[{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dependency-update-tool"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#security-policy"}},{"name":"Maintained","score":0,"reason":"project was created within the last 90 days. Please review its contents carefully","details":["Warn: Repository was created within the last 90 days."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/12 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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/rust-cd.yml:32","Info: topLevel 'contents' permission set to 'read': .github/workflows/rust-cd.yml:21","Info: topLevel 'contents' permission set to 'read': .github/workflows/rust-ci.yml:28","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18","Info: topLevel 'contents' permission set to 'read': .github/workflows/sonarqube.yml:10"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":6,"reason":"dependency not pinned by hash detected -- score normalized to 6","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/scorecard.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/pranamphd/digipin-rs/scorecard.yml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/rust-cd.yml:91","Warn: downloadThenRun not pinned by hash: .github/workflows/rust-ci.yml:61","Info:  14 out of  15 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   2 downloadThenRun 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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#pinned-dependencies"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dangerous-workflow"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#vulnerabilities"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/rust-cd.yml:28"],"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#packaging"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (27) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#sast"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/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: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.1.0-beta.2 not signed: https://api.github.com/repos/pranamphd/digipin-rs/releases/276233131","Warn: release artifact v0.1.0-beta.1 not signed: https://api.github.com/repos/pranamphd/digipin-rs/releases/276229284","Warn: release artifact v0.1.0-beta not signed: https://api.github.com/repos/pranamphd/digipin-rs/releases/276106270","Warn: release artifact v0.1.0-alpha.20 not signed: https://api.github.com/repos/pranamphd/digipin-rs/releases/276069296","Warn: release artifact v0.1.0-alpha.19 not signed: https://api.github.com/repos/pranamphd/digipin-rs/releases/275849191","Warn: release artifact v0.1.0-beta.2 does not have provenance: https://api.github.com/repos/pranamphd/digipin-rs/releases/276233131","Warn: release artifact v0.1.0-beta.1 does not have provenance: https://api.github.com/repos/pranamphd/digipin-rs/releases/276229284","Warn: release artifact v0.1.0-beta does not have provenance: https://api.github.com/repos/pranamphd/digipin-rs/releases/276106270","Warn: release artifact v0.1.0-alpha.20 does not have provenance: https://api.github.com/repos/pranamphd/digipin-rs/releases/276069296","Warn: release artifact v0.1.0-alpha.19 does not have provenance: https://api.github.com/repos/pranamphd/digipin-rs/releases/275849191"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: branch 'main' does not require approvers","Warn: codeowners review is required - but no codeowners file found in repo","Warn: 'last push approval' is disabled on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#branch-protection"}},{"name":"Contributors","score":0,"reason":"project has 0 contributing companies or organizations -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"9 out of 9 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#ci-tests"}}]},"last_synced_at":"2026-01-13T08:00:00.153Z","repository_id":331822821,"created_at":"2026-01-13T08:00:00.153Z","updated_at":"2026-01-13T08:00:00.153Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","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":["address-validation","digipin","geo-coding","india","pincode","zipcode"],"created_at":"2026-01-16T05:50:01.451Z","updated_at":"2026-01-16T05:50:01.552Z","avatar_url":"https://github.com/pranamphd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# digipin-rs\n\nDIGIPIN (Digital Postal Index Number) is a national-level, geo-coded addressing grid developed by the **Department of Posts, Ministry of Communications, Government of India**. It provides a deterministic and reversible method to represent geographic locations in India using a **10-character alphanumeric code derived from latitude and longitude**.\n\nThis repository contains a **Rust implementation of the DIGIPIN algorithm**, intended to enable consistent and correct adoption across platforms, applications, and systems.\n\n![DIGIPIN Logo](/digipin-social-preview.png)\n\n## What this repository provides\n\n- Deterministic conversion from **latitude / longitude → DIGIPIN**\n- Reversible conversion from **DIGIPIN → geographic coordinates**\n- Comprehensive tests to ensure correctness\n- Implementation aligned with the **final DIGIPIN Technical Specification (March 2025)**\n\n---\n\n## Specification reference\n\nThis project implements the **DIGIPIN (Digital Postal Index Number)** algorithm strictly according to the official technical specification published by the **Department of Posts, Ministry of Communications, Government of India**.\n\nThe authoritative specification is available at:\n[https://www.indiapost.gov.in/digipin](https://www.indiapost.gov.in/digipin)\n\nAll implementations in this repository aim to faithfully reproduce the behavior described in the final DIGIPIN Technical Document (March 2025).\n\n\u003e This repository provides an independent implementation of the DIGIPIN specification and is not an official distribution of the Department of Posts unless explicitly stated otherwise.\n\n---\n\n## Design principles\n\n- **Specification-first**: Implementation strictly follows the DIGIPIN technical specification.\n- **Deterministic**: The same input always produces the same output, regardless of language or platform.\n- **No external dependencies**: Core logic is self-contained.\n\n---\n\n## Usage\n\n\n```sh\ncargo add digipin-rs\n```\n\n```rust\nuse digipin::{encode, decode, Location};\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let location = Location {\n        latitude: 28.622788,\n        longitude: 77.213033,\n    };\n\n    let digipin = encode(location)?;\n    let decoded_location = decode(\u0026digipin)?;\n\n    println!(\"DIGIPIN: {}\", digipin);\n    println!(\"Decoded Location: {:?}\", decoded_location);\n\n    Ok(())\n}\n```\n\n---\n\n## Documentation\n\nAPI documentation is available on [**docs.rs**](https://docs.rs/digipin-rs).\n\n[![docs.rs](https://docs.rs/digipin-rs/badge.svg)](https://docs.rs/digipin-rs)\n\n---\n\n## Status\n\nThis repository is under active development.\nThe library interfaces (function and type signatures) may evolve until the first stable release (`v1.0.0`).\n\n[![crates.io](https://img.shields.io/crates/v/digipin-rs.svg)](https://crates.io/crates/digipin-rs)\n[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/11730/badge)](https://www.bestpractices.dev/projects/11730)\n[![SLSA 3](https://slsa.dev/images/gh-badge-level3.svg)](https://slsa.dev)\n\n---\n\n## License\n\nThis project is licensed under the **Apache License, Version 2.0**.\nSee the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranamphd%2Fdigipin-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranamphd%2Fdigipin-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranamphd%2Fdigipin-rs/lists"}