Click or drag to resize

Verhoeff Class

Inheritance Hierarchy
SystemObject
  Orthogonal.Common.BasicVerhoeff

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax
C#
public static class Verhoeff

The Verhoeff type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCode exampleCalculateCheckSum Calculates the Verhoeff checksum digit for a string of numeric characters.
Public methodStatic memberCode exampleGenerateCheckSum Generates a Verhoeff checksum digit suffixed string.
Public methodStatic memberCode exampleValidateCheckSum Validates a string of numeric characters has a valid Verhoeff checksum digit suffix character.
Top
Remarks
Note that unlike the Damm algorithm, leading zeroes do affect the Verhoeff check digit. So for example 1 -> 15, 01 -> 010, 001 -> 0018. This behaviour may make Verhoeff preferable to Damm in general usage.
See Also