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.
import "github.com/kolkov/iso6346"
err := iso6346.Validate("CMAU5110875")
signed := iso6346.Generate("CMAU511087")
test on your own by running make benchmark