Module to calculate and validate check digits for redundancy checking, using f.ex. mod10 (luhn algorithm) or mod11.