SkillAgentSearch skills...

LuhnAlgorithmCSharp

Luhn Algorithm C#

Install / Use

/learn @unkdvt/LuhnAlgorithmCSharp
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

LuhnAlgorithmCSharp

Luhn Algorithm C#

From Wikipedia, the free encyclopedia

The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, named after IBM scientist Hans Peter Luhn, 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.

The algorithm is in the public domain and is in wide use today. It is specified in ISO/IEC 7812-1.[1] It is not intended to be a cryptographically secure hash function; it was designed to protect against accidental errors, not malicious attacks. Most credit cards and many government identification numbers use the algorithm as a simple method of distinguishing valid numbers from mistyped or otherwise incorrect numbers.

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated1y ago
Forks1

Languages

C#

Security Score

62/100

Audited on Mar 28, 2025

No findings