CUC-code
Table of contents
General information
CUC-code can be used on several occurrences of OrgId/Othr/Id fields in CBI implementation. When CUC code is used, OrgId/Othr/Issr has to contain value "CBI"
Calculation of control character in CUC-code
The calculation of the control character is performed as follows:
converting the characters which occupy position of even order with the following values:
A or 0 | = | 0 | K | = | 10 | U | = | 20 |
B or 1 | = | 1 | L | = | 11 | V | = | 21 |
C or 2 | = | 2 | M | = | 12 | W | = | 22 |
D or 3 | = | 3 | N | = | 13 | X | = | 23 |
E or 4 | = | 4 | O | = | 14 | Y | = | 24 |
F or 5 | = | 5 | P | = | 15 | Z | = | 25 |
G or 6 | = | 6 | Q | = | 16 |
|
|
|
H or 7 | = | 7 | R | = | 17 |
|
|
|
I or 8 | = | 8 | S | = | 18 |
|
|
|
J or 9 | = | 9 | T | = | 19 |
|
|
|
converting the characters which occupy position of odd order:
A or 0 | = | 1 | K | = | 2 | U | = | 16 |
B or 1 | = | 0 | L | = | 4 | V | = | 10 |
C or 2 | = | 5 | M | = | 18 | W | = | 22 |
D or 3 | = | 7 | N | = | 20 | X | = | 25 |
E or 4 | = | 9 | O | = | 11 | Y | = | 24 |
F or 5 | = | 13 | P | = | 3 | Z | = | 23 |
G or 6 | = | 15 | Q | = | 6 |
|
|
|
H or 7 | = | 17 | R | = | 8 |
|
|
|
I or 8 | = | 19 | S | = | 12 |
|
|
|
J or 9 | = | 21 | T | = | 14 |
|
|
|
The numerical values thus determined are added and the sum is divided by the number 26.
The check character is achieved by converting the remainder of the division in the alphabetic character corresponding to it in the following table:
0 | = | A | 10 | = | K | 20 | = | U |
1 | = | B | 11 | = | L | 21 | = | V |
2 | = | C | 12 | = | M | 22 | = | W |
3 | = | D | 13 | = | N | 23 | = | X |
4 | = | E | 14 | = | O | 24 | = | Y |
5 | = | F | 15 | = | P | 25 | = | Z |
6 | = | G | 16 | = | Q |
|
|
|
7 | = | H | 17 | = | R |
|
|
|
8 | = | I | 18 | = | S |
|
|
|
9 | = | J | 19 | = | T |
|
|
|
Examples of valid CUC code:
3121975D 3121976F 3121977H 3111877A 3115586X 0031288P