21 packages tagged with “luhn”
CreditCardValidator helps you validate credit card numbers, identify its issuer (Visa, Mastercard, etc), verify length, prefixes and check it through the Luhn algorithm. It can also generate random credit card numbers for testing purposes.
Provides methods to validate if a number is valid according to the Luhn algorithm and calculate the check digit.
A simple helper to check a creditcard number and to find a hidden card in a text.
# SlxLuhnLibrary The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers in the United States, Canadian Social Insurance Numbers, Israel ID Numbers and Greek Social Security Numbers (ΑΜΚΑ). It was created by IBM scientist Hans Peter Luhn and described in U.S. Patent No. 2,950,048, filed on January 6, 1954, and granted on August 23, 1960. Here I also implement the Luhn mod N algorithm which is an extension to the Luhn algorithm (also known as mod 10 algorithm) that allows it to work with sequences of non-numeric characters. This can be useful when a check digit is required to validate an identification string composed of letters, a combination of letters and digits or even any arbitrary set of characters.
An C# implementation of the Luhn algorithm and other check digit algorithms.
Perform Luhn (Modulus 10) validation on a given number.
LUHN modulo N
Deep object validation library for .NET.
Calculates Mod10 and Mod11
Classes to validate the formal correctness of national account numbers and international credit card numbers. The conversion between national account numbers and IBAN is supported too.
An extensive collection of optimized check digit algorithms suitable for a wide range of applications
Utilities for the finance industry.
Very performant tool helping you validate credit card numbers or generate check digit using Luhn algorithm (a.k.a. Modulus10).
Credit Cards and Identification numbers Validator. Based on the Luhn Algorithm.
ObjectValidator item validation attributes for CountryValidator.DataAnnotations
Core interfaces and algorithms for the Finova financial toolkit. Contains Mod97, Luhn, ISO 7064, and base models for IBAN/BIC/Card/Enterprise/NationalID validation. Zero dependencies.
Very performant tool helping you validate credit card numbers or generate them.
A lightweight, flexible C# library for generating unique reference numbers in various formats. Features include numeric, alphabetic, alphanumeric, and GUID generation, plus check digit support (Luhn, Mod97, Verhoeff, Damm) and powerful template-based generation.
The high-performance, 100% offline financial validation toolkit for .NET. Features: ✔️ Universal IBAN Parser: Auto-detects and validates rules for Europe (DE, IT, ES, FR, BE, NL, UK) and Global formats. ✔️ National IDs: Validates National ID / Citizen ID numbers for 51 European countries (e.g., France NIR, Italy Codice Fiscale, UK NINO). ✔️ Enterprise Numbers: Validates French SIRET/SIREN, Belgian KBO/BCE, German Steuernummer, and more (51 countries). ✔️ VAT Numbers: Validates EU VAT formats and checksums (VIES offline syntax). ✔️ Payment Cards: Zero-allocation Luhn algorithm check, brand detection, and security validation. ✔️ Payment References: Generate/Validate ISO 11649 (RF) and Belgian OGM/VCS. ✔️ Bank Codes: BIC/SWIFT structure validation (ISO 9362). Designed for FinTechs and SaaS. Zero dependencies.
CheckDigits.Net.Annotations extends CheckDigits.Net and provides custom DataAnnotation classes for validating that a string property includes a valid check digit according to a wide variety of check digit algorithms.
CheckDigits.Net.FluentValidation integrates CheckDigits.Net with FluentValidation and supports adding check digit validation in your validation classes.