Modulo 10 check digit calculation
Step 1: Designate the least significant (right-most)
digit position as even (E).
5 7 6 3 5 7 9 0 1 2 5 <-- Message digits
O E O E O E O E O E O <-- Digit positions
Step 2: Form a new number using the odd (O) position
digits in sequence
565915
Step 3: Multiply the new number by 2
565915 * 2 = 1131830
Step 4: Sum all the digits of the result.
1 + 1 + 3 + 1 + 8 + 3 + 0 = 17
Step 5: Sum all the digits in the even positions
and add the result to Step 4.
7 + 3 + 7 + 0 + 2 = 19 + 17 = 36
Step 6: Subtract the result from the next
higher multiple of 10
40 - 36 = 4;
The Modulo 10 check digit is 4.
Modulo 11 check digit calculation
The modulo 11 check digit calculation uses weighting
factors which repeat from
right to left in the following sequence:
(2,3,4,5,6,7,2,3,4,5,6,7,2,3,4,5,6,7,...)
Step 1: Starting with the right-most digit, assign a weight
to each digit position.
5 7 6 3 5 7 9 0 1 2 5 <-- Message digits
6 5 4 3 2 7 6 5 4 3 2 <-- weights
Step 2: Calculate and sum the products of each weight
and digit.
(5*6)+(7*5)+(6*4)+(3*3)+(5*2)+(7*7)+
(9*6)+(0*5)+(1*4)+(2*3)+(5*2) = 231
Step 3: Subtract the result from the next higher
multiple of 11
231 - 231 = 0
The Modulo 11 check digit is 0.
|