Skip to content

glennsb/luhnmodn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

luhn mod n

An implementation of the Luhn mod N algorithm for Go

About

A learning project for Go by implementing Luhn mod N check digig algorithm. Should allow check digit generation & validation of numbers in various bases (10,16,36)

Use

Install

go get https://github.com/glennsb/luhnmodn

Quick Use

luhnmodn.Checksummed("7992739871",10) //Get back a string 79927398713
luhnmodn.Valid("d4fkd51a39",36) //false
luhnmodn.Valid("d4kfd51a39",36) //true

License

(c) 2013 Stuart Glenn under MIT license

About

Luhn mod n Algorithm in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages