computeCheckDigit
Computes the check digit of an MRZ field.
Return
The digit '0' to '9' for the sum of each character value times the repeating weights 7, 3, 1, modulo 10. Digits count as themselves, A-Z as 10-35, and < as 0.
Parameters
input
The field text, using only A-Z, 0-9, and <.
Throws
if input has a character outside the MRZ alphabet. The message names its position, never the character, so it carries no document data (ADR-029).