{"id":37021439,"url":"https://github.com/homebeaver/standard-validator","last_synced_at":"2026-01-14T02:32:00.981Z","repository":{"id":328647285,"uuid":"1115426286","full_name":"homebeaver/standard-validator","owner":"homebeaver","description":"extends commons-validator with ISO IEC 7064 System check digits.","archived":false,"fork":false,"pushed_at":"2026-01-10T21:43:40.000Z","size":7584,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T05:07:49.148Z","etag":null,"topics":["check-digit","credit-card","hybrid-system","iban","imo","iso-iec-7064","lei","leitweg","luhn","mod-11-10","mod-11-2","mod-1271-36","mod-27-26","mod-37-2","mod-37-36","mod-661-26","mod-97-10","polynomial-system","tin","vatin"],"latest_commit_sha":null,"homepage":"","language":"Java","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/homebeaver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"notice":"NOTICE.txt","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-12T21:06:59.000Z","updated_at":"2026-01-10T21:43:43.000Z","dependencies_parsed_at":"2025-12-17T01:04:10.561Z","dependency_job_id":null,"html_url":"https://github.com/homebeaver/standard-validator","commit_stats":null,"previous_names":["homebeaver/standard-validator"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/homebeaver/standard-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebeaver%2Fstandard-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebeaver%2Fstandard-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebeaver%2Fstandard-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebeaver%2Fstandard-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/homebeaver","download_url":"https://codeload.github.com/homebeaver/standard-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebeaver%2Fstandard-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"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":["check-digit","credit-card","hybrid-system","iban","imo","iso-iec-7064","lei","leitweg","luhn","mod-11-10","mod-11-2","mod-1271-36","mod-27-26","mod-37-2","mod-37-36","mod-661-26","mod-97-10","polynomial-system","tin","vatin"],"created_at":"2026-01-14T02:32:00.446Z","updated_at":"2026-01-14T02:32:00.964Z","avatar_url":"https://github.com/homebeaver.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This Java library extends commons-validator and implements algorithms specified in [ISO/IEC 7064](https://en.wikipedia.org/wiki/ISO/IEC_7064), [ICAO MOD 10/731](https://www2023.icao.int/publications/Documents/9303_p3_cons_en.pdf) and [LUHN](https://en.wikipedia.org/wiki/Luhn_algorithm) which is defined in [ISO/IEC 7812-1 Annex B](https://en.wikipedia.org/wiki/ISO%2FIEC_7812).\n\nThe standard-validator jar calculates/validates\n\n- credit card numbers ([LUHN](https://github.com/homebeaver/ungueltig/wiki/LUHN))\n- [travel document](https://en.wikipedia.org/wiki/Travel_document) numbers (passports, visa and ID-Cards, miles \u0026 more)\n- driver license numbers\n- rail card numbers\n- all [IBAN](https://en.wikipedia.org/wiki/International_Bank_Account_Number)s (ISO/IEC 7064:MOD 97-10)\n- [US Routing transit number](https://en.wikipedia.org/wiki/Routing_transit_number) ([MOD-10](https://github.com/homebeaver/ungueltig/wiki/MOD-10#371))\n- [Creditor Reference](https://en.wikipedia.org/wiki/Creditor_Reference) (ISO-11649)\n- [ISIN](https://en.wikipedia.org/wiki/International_Securities_Identification_Number) (US-CUSIP and GB-SEDOL)\n- EAN/UPC, ISBNs and ISSNs (MOD-10)\n- all european [VAT ID numbers](https://en.wikipedia.org/wiki/VAT_identification_number) and Tax numbers \n- french [SIREN](https://en.wikipedia.org/wiki/SIREN_code) and SIRET numbers (LUHN)\n- chemical numbers [CAS](https://en.wikipedia.org/wiki/CAS_Registry_Number), EC index and [EC-number](https://en.wikipedia.org/wiki/European_Community_number)\n- [IMO vessel number](https://en.wikipedia.org/wiki/IMO_number) ([MOD-10](https://github.com/homebeaver/ungueltig/wiki/MOD-10))\n- german [Leitweg-ID](https://de.wikipedia.org/wiki/Leitweg-ID) (ISO/IEC 7064:MOD 97-10)\n- [Legal Entity Identifier](https://en.wikipedia.org/wiki/Legal_Entity_Identifier) (ISO-17442)\n\nISO/IEC 7064\n============\n\ncalculates/validates [ISO/IEC 7064](https://github.com/homebeaver/ungueltig/wiki/ISO-IEC_7064) check characters.\n\nThe algorithms include all **pure systems** plus the pure polynomial implementations of:\n* [ISO/IEC 7064, MOD 11-2](https://github.com/homebeaver/ungueltig/wiki/MOD-11-2) for numeric strings with one check digit or the supplementary check character \"X\"\n* [ISO/IEC 7064, MOD 37-2](https://github.com/homebeaver/ungueltig/wiki/MOD-37-2) for alphanumeric strings with one check digit or letter or the supplementary check character \"*\"\n* [ISO/IEC 7064, MOD 97-10](https://github.com/homebeaver/ungueltig/wiki/MOD-97-10) for numeric strings with two check digits\n* ISO/IEC 7064, MOD 661-26 for alphabetic strings with two check letters\n* ISO/IEC 7064, MOD 1271-36 for alphanumeric strings with two check digits or letters\n\nThis is a full implementation of the ISO/IEC standard. Also **hybrid systems** are implemeted:\n* [ISO/IEC 7064, MOD 11,10](https://github.com/homebeaver/ungueltig/wiki/MOD-11%2C10) for numeric strings with one check digit\n* ISO/IEC 7064, MOD 27,26 for alphabetic strings with one check letter\n* [ISO/IEC 7064, MOD 37,36](https://github.com/homebeaver/ungueltig/wiki/MOD-37%2C36) for alphanumeric strings with one check digit or letter\n\n\nICAO MOD 10 standard\n====================\n\nAs defined in [ICAO Doc9003](https://www2023.icao.int/publications/Documents/9303_p3_cons_en.pdf) for travel documents like passports and ID-Cards.\n\n\nLUHN\n====\n\nThere is no standard for the [Luhn algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm). It is specified in Annex of ISO/IEC 7812 for Identification cards. Here a screenshot:\n\n![](https://raw.githubusercontent.com/wiki/homebeaver/ungueltig/image/LUHN.png)\n\nHow to use\n==========\n\n```xml\n\u003c!-- https://mvnrepository.com/artifact/io.github.homebeaver/standard-validator --\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.homebeaver\u003c/groupId\u003e\n    \u003cartifactId\u003estandard-validator\u003c/artifactId\u003e\n    \u003cversion\u003e2.10.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThe modules are originally planned to be part of [Apache commons-validator](https://commons.apache.org/proper/commons-validator/download_validator.cgi)\n\nJava example:\n\n```java\nCheckDigit numericCheck = IsoIecPure11System.getInstance();\n\nString checkDigit = numericCheck.calculate(\"123456\");\nboolean isValid = numericCheck.isValid(\"123456X\");\n```\n\nA more practical example (create a valid Structured Creditor Reference and check it):\n\n```java\nString createRFCreditorReference(final String cr) {\n    System.out.println(\"createRFCreditorReference from [\" + cr + \"]\");\n    CheckDigit checkDigit = RFCreditorReferenceCheckDigit.getInstance();\n\n    String cd = \"00\"; // check digit to start with\n    try {\n        cd = checkDigit.calculate(RFCreditorReferenceCheckDigit.RF + cd + cr);\n        return RFCreditorReferenceCheckDigit.RF + cd + cr;\n    } catch (CheckDigitException ex) {\n        System.out.println(\"failed to create RFCreditorReference : \" + ex.getMessage());\n    }\n    return null;\n}\n\n    final String cr = \"InvNo4711date25DEC31\"; //Maximum is 21 chars\n    String validRFcr = createRFCreditorReference(cr);\n    boolean isValid = RFCreditorReferenceValidator.getInstance().isValid(validRFcr);\n    System.out.println(\"created RFCreditorReference \" + validRFcr + \" is \" + (isValid ? \"OK\" : \"NOT valid\"));\n\n/* result is:\ncreateRFCreditorReference from [InvNo4711date25DEC31]\ncreated RFCreditorReference RF07InvNo4711date25DEC31 is OK\n */\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomebeaver%2Fstandard-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomebeaver%2Fstandard-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomebeaver%2Fstandard-validator/lists"}