Skip to content

An implementation of the Verhoeff algorithm in nim

Notifications You must be signed in to change notification settings

gabearro/NimVerhoeff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

What is the Verhoeff algorithm?

As the best source says, "The Verhoeff algorithm is a checksum formula for error detection developed by the Dutch mathematician Jacobus Verhoeff".


Usage

To generate the checksum of a number use:

checksum("12340")

To generate the check digit that would make the number valid use:

calc_check_digit("1234")

To check if a number is valid use:

is_valid("12340")

Changelog

  • 27-March-2019 Added core files.

About

An implementation of the Verhoeff algorithm in nim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages