{"id":37026853,"url":"https://github.com/mpolla/fin-id-utils","last_synced_at":"2026-01-14T03:10:23.180Z","repository":{"id":57721613,"uuid":"213386823","full_name":"mpolla/fin-id-utils","owner":"mpolla","description":"Tools for Finnish personal identity codes HETU (henkilötunnus) and SATU (sähköinen asiointitunnus).","archived":false,"fork":false,"pushed_at":"2024-09-17T13:56:40.000Z","size":169,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-18T16:09:14.340Z","etag":null,"topics":["digijavaestovirasto","dvv","finland","finnish-identity-codes","henkilotunnus","hetu","identity","java","jvm","kotlin","sahkoinenasiointi","satu","suomi"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpolla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-10-07T13:11:56.000Z","updated_at":"2024-09-17T13:53:29.000Z","dependencies_parsed_at":"2024-09-18T02:02:22.363Z","dependency_job_id":null,"html_url":"https://github.com/mpolla/fin-id-utils","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mpolla/fin-id-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolla%2Ffin-id-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolla%2Ffin-id-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolla%2Ffin-id-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolla%2Ffin-id-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpolla","download_url":"https://codeload.github.com/mpolla/fin-id-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolla%2Ffin-id-utils/sbom","scorecard":{"id":663046,"data":{"date":"2025-08-11","repo":{"name":"github.com/mpolla/fin-id-utils","commit":"e970fdcb4bfcb92e2ba11e9f534a9f596061d226"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"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":"Code-Review","score":0,"reason":"Found 1/29 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/detekt-analysis.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/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/mpolla/fin-id-utils/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/mpolla/fin-id-utils/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/detekt-analysis.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/mpolla/fin-id-utils/detekt-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/detekt-analysis.yml:99: update your workflow using https://app.stepsecurity.io/secureworkflow/mpolla/fin-id-utils/detekt-analysis.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned 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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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-21T16:50:06.751Z","repository_id":57721613,"created_at":"2025-08-21T16:50:06.752Z","updated_at":"2025-08-21T16:50:06.752Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["digijavaestovirasto","dvv","finland","finnish-identity-codes","henkilotunnus","hetu","identity","java","jvm","kotlin","sahkoinenasiointi","satu","suomi"],"created_at":"2026-01-14T03:10:22.402Z","updated_at":"2026-01-14T03:10:23.175Z","avatar_url":"https://github.com/mpolla.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"fin-id-utils - validate Finnish personal identity codes\n=======================================================\n\nThis library provides tools for Finnish personal identity codes HETU (henkilötunnus) ans SATU (sähköinen asiointitunnus).\n\nFeatures\n\n* Validate HETU and SATU identity codes.\n* Check gender of a HETU code.\n* Generate random codes.\n\nSee https://dvv.fi/en/personal-identity-code\n\n## Add dependency\n\nApache Maven\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.mpolla\u003c/groupId\u003e\n      \u003cartifactId\u003efin-id-utils\u003c/artifactId\u003e\n      \u003cversion\u003e0.5.4\u003c/version\u003e\n    \u003c/dependency\u003e\n\nGradle Kotlin DSL\n\n    implementation(\"com.github.mpolla:fin-id-utils:0.5.4\")\n\nGradle Groovy DSL\n\n    implementation 'com.github.mpolla:fin-id-utils:0.5.4'\n\n## Usage (Java)\n\nValidate a HETU/SATU code.\n\n```java\nboolean validHetu = HetuUtil.isValid(\"131052+308T\");\nboolean validSatu = SatuUtil.isValid(\"10011187H\");\n```\n\nCheck the gender of a HETU code.\n\n```java\nboolean isFemale = HetuUtil.isFemale(\"131052-308T\");\n```\n\nGenerate random HETU/SATU code.\n\n```java\nString randomHetu = HetuUtil.generateRandom();\nString randomSatu = SatuUtil.generateRandom();\n```\n    \nCompute the control character suffix for a HETU code.\n\n```java\nChar controlCharacter = HetuUtil.computeControlCharacter(\"131052-308\");\n```\n\n## Usage (Kotlin)\n\nValidate a HETU/SATU code.\n\n```kotlin\nval validHetu = HetuUtil.isValid(\"131052+308T\")\nval validSatu = SatuUtil.isValid(\"10011187H\")\n```\n\nCheck the gender of a HETU code.\n\n```kotlin\nval isFemale = HetuUtil.isFemale(\"131052-308T\")\n```\n\nGenerate random HETU/SATU code.\n\n```kotlin\nval randomHetu = HetuUtil.generateRandom()\nval randomSatu = SatuUtil.generateRandom()\n```\n    \nCompute the control character suffix for a HETU code.\n\n```kotlin\nval controlCharacter = HetuUtil.computeControlCharacter(\"131052-308\")\n```\n\n## Development\n\nPublish new release\n\n    git tag x.x\n    ./gradlew publish\n\n![CI](https://github.com/mpolla/fin-id-utils/workflows/CI/badge.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpolla%2Ffin-id-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpolla%2Ffin-id-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpolla%2Ffin-id-utils/lists"}