{"id":22888373,"url":"https://github.com/gravity00/simpleiso7064","last_synced_at":"2025-05-07T11:45:02.226Z","repository":{"id":60773928,"uuid":"63959771","full_name":"gravity00/SimpleISO7064","owner":"gravity00","description":"C# library that provide ISO 7064 implementations to verify or calculate check characters.","archived":false,"fork":false,"pushed_at":"2024-10-29T10:36:20.000Z","size":125,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T07:24:31.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gravity00.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-22T14:30:26.000Z","updated_at":"2025-02-03T11:43:05.000Z","dependencies_parsed_at":"2024-12-13T20:58:02.031Z","dependency_job_id":null,"html_url":"https://github.com/gravity00/SimpleISO7064","commit_stats":{"total_commits":57,"total_committers":4,"mean_commits":14.25,"dds":"0.14035087719298245","last_synced_commit":"a3b5a6ecca2cf50208fc16cbcce7dccec92b935d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravity00%2FSimpleISO7064","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravity00%2FSimpleISO7064/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravity00%2FSimpleISO7064/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravity00%2FSimpleISO7064/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gravity00","download_url":"https://codeload.github.com/gravity00/SimpleISO7064/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252873936,"owners_count":21817708,"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","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":"2024-12-13T20:47:54.930Z","updated_at":"2025-05-07T11:45:02.218Z","avatar_url":"https://github.com/gravity00.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple ISO 7064\nC# library that provide ISO 7064 implementations to verify or calculate check characters.\n\nOut of the box, the library supports the following pure systems:\n* Modulus 11 with Radix 2\n* Modulus 37 with Radix 2\n* Modulus 97 with Radix 10\n* Modulus 661 with Radix 26\n* Modulus 1271 with Radix 36\n\n## Installation \nThis library can be installed via [NuGet](https://www.nuget.org/packages/SimpleISO7064/) package. Just run the following command:\n\n```powershell\nInstall-Package SimpleISO7064\n```\n\n## Compatibility\n\nThis library directly targets the following frameworks:\n\n* .NET Standard 1.0;\n* .NET Standard 2.0;\n* .NET Framework 2.0;\n* .NET Framework 4.0;\n* .NET 5.0;\n\n## Usage\n\nBasic example (using Mod 11 Radix 2 singleton):\n\n```cs\nconst string value = \"101100002683118740\";\n\nIIso7064PureSystemProvider provider = Iso7064.PureSystem.Mod11Radix2;\n\n// computes the check digit -\u003e 7\nvar checkDigit = provider.ComputeCheckDigit(value);\n\n// computes the value with the check digit -\u003e 1011000026831187407\nvar computed = provider.Compute(value);\n\n// checks if the value is valid -\u003e true\nvar isValid = provider.IsValid(computed);\n```\n\nOut of the box pure systems are available in the `Iso7064.PureSystem` namespace.\n\n```cs\nvar mod11Radix2 = new Mod11Radix2();\nvar mod37Radix2 = new Mod37Radix2();\nvar mod97Radix10 = new Mod97Radix10();\nvar mod661Radix26 = new Mod661Radix26();\nvar mod1271Radix36 = new Mod1271Radix36();\n```\n\nSince the pure system implementations are thread safe, it is recommended to use the singleton instances available in the `Iso7064.PureSystem` class.\n\n```cs\nvar mod11Radix2 = Iso7064.PureSystem.Mod11Radix2;\nvar mod37Radix2 = Iso7064.PureSystem.Mod37Radix2;\nvar mod97Radix10 = Iso7064.PureSystem.Mod97Radix10;\nvar mod661Radix26 = Iso7064.PureSystem.Mod661Radix26;\nvar mod1271Radix36 = Iso7064.PureSystem.Mod1271Radix36;\n```\n\nYou can also create your own pure systems either by creating a new instance of `Iso7064PureSystemProvider`, using the\nbuilder method provided by the `Iso7064Factory` class or by implementing the `IIso7064PureSystemProvider` interface.\n\n```cs\n// using the constructor\nvar provider = new Iso7064PureSystemProvider(11, 2, false, \"0123456789X\");\n\n// using the factory\nvar provider = Iso7064.Factory.Get(11, 2, false, \"0123456789X\");\n```\n\n## V2 vs V1 Notes\n\nThere were a couple of small breaking changes between version 1 and version 2 of this library.\n\n### Case sensitive\n\nThe library is now case sensitive, meaning that if you are interpreting inputs from a user you should do some treatment before.\nThis was an intended change to increase library performance while also allowing for any kind of character set composition, even case sensitive.\n\n### Directly targeted frameworks\n\nReduced the number of directly targeted frameworks but this change should still allow to be used almost everywhere.\n\n* .NET Standard 1.0;\n* .NET Standard 2.0;\n* .NET Framework 2.0;\n* .NET Framework 4.0;\n* .NET 5.0;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravity00%2Fsimpleiso7064","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgravity00%2Fsimpleiso7064","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravity00%2Fsimpleiso7064/lists"}