https://github.com/jancajthaml-go/verhoeff
verhoeff check-digit validator and generator
https://github.com/jancajthaml-go/verhoeff
check-digit checksum verhoeff verhoeff-digit
Last synced: 6 months ago
JSON representation
verhoeff check-digit validator and generator
- Host: GitHub
- URL: https://github.com/jancajthaml-go/verhoeff
- Owner: jancajthaml-go
- License: unlicense
- Created: 2017-08-06T23:13:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-18T08:53:50.000Z (over 5 years ago)
- Last Synced: 2024-06-20T22:36:21.922Z (about 2 years ago)
- Topics: check-digit, checksum, verhoeff, verhoeff-digit
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## zero-alloc verhoeff checksum algorithm
[](https://goreportcard.com/report/jancajthaml-go/verhoeff)
### Usage ###
```
import "github.com/jancajthaml-go/verhoeff"
ok := verhoeff.Validate("00123014764700968325")
digit, error := verhoeff.Digit("x")
signed := verhoeff.Generate("1")
```
### Resources ###
* [Wikipedia - Verhoeff algorithm](https://en.wikipedia.org/wiki/Verhoeff_algorithm)