Skip to content
/ iso6346 Public

Algorithm will detect wrong container numbers by iso6346.

License

Notifications You must be signed in to change notification settings

kolkov/iso6346

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An implementation of iso6346 check-digit algorithm

Go Report Card Coverage Status Build Status

Algorithm will detect wrong container numbers.

It is not intended to be a cryptographically secure hash function. It is mostly used for preflight container numbers.

Compatible with the ozzo-validation package.

Usage

import "github.com/kolkov/iso6346"

err := iso6346.Validate("CMAU5110875")

signed := iso6346.Generate("CMAU511087")

test on your own by running make benchmark

Resources

About

Algorithm will detect wrong container numbers by iso6346.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages