Skip to content
Nuvyntra Labs
All packages

Shared libraries

Identifiers

PAN format, GSTIN checksum, Aadhaar Verhoeff, and IBAN mod-97

Boolean checks for a PAN, a GSTIN checksum, an Aadhaar Verhoeff checksum, and an IBAN. None of the methods throw, and none of them mask. Version 0.1.1 is in source and is not on nuget.org yet.

Install

dotnet add package NuvyntraLabs.NET.Identifiers

Package ID: NuvyntraLabs.NET.Identifiers

NuvyntraLabs.NET.* is a class library, not a Plugin.Maui.* package. The install command applies after 0.1.1 is published. Until then, reference the project in the hub submodule.

Example

Pan.IsValid("ABCDE1234F");
Gstin.IsValid("27AAPFU0939F1ZV");
Aadhaar.IsValid("2341 2341 2346");
Iban.IsValid("GB82 WEST 1234 5698 7654 32");

Overview

NuvyntraLabs.NET.Identifiers answers whether a tax or bank identifier matches its format and checksum. Email, phone, and required fields stay on Plugin.Maui.FormValidation. Masking stays on DataMask. Input is trimmed or space-stripped, then compared in uppercase.

Capabilities

  • Pan.IsValid accepts ^[A-Z]{5}[0-9]{4}[A-Z]$. PAN has no checksum.
  • Gstin.IsValid requires 15 characters, state 01–38, an embedded PAN, an entity code, Z, and the mod-36 checksum.
  • Aadhaar.IsValid requires 12 digits and a Verhoeff checksum. Spaces are ignored.
  • Iban.IsValid requires a known country length and a mod-97 checksum of 1. Spaces are ignored.

Discussion

Comment on NuvyntraLabs.NET.Identifiers. The thread lives on this component's GitHub repository. Sign in with GitHub — Giscus uses Discussions, Utterances uses Issues.

Issues are not enabled on this repository

Open the conversation on GitHub, or use the Giscus tab if Discussions are available.

Related in Shared libraries