IHCL

IHCL is a 14-digit alphanumeric number applied to anime characters. It acts as an identifier for all individual anime characters and are stored in the KDW database. It can be also be seen on papers, usually using the barcode font.

Structure
The IHCL structure is as follows: 12345ABCD6E7GH. The first five are numeric, followed by four letters, one digit, one letter, one digit and two letters. KlantIndex (a FCV created by KhihidoJan) uses the same structure as IHCL except that the first five characters and the 10th and 11th characters are random, and doesn't use alphabetic check digit, in the format of 12345ABCD6E7G, where the 12th character is calculated by Luhn algorithm and the last character is always X.
 * The first five (1st to 5th) characters are the anime character's ID.
 * The next four (6th to 9th) characters are the initials of the anime character's full name.
 * The next two (10th and 11th) characters are the folder number which the anime character belongs to.
 * The next (12th) character is a numeric check digit, followed by another (13th) character which is an alphabetic check digit.
 * The last (14th) character is an 'X'.

Checksum
IHCL has two check digits, the 12th is numeric (0–9) and the 13th is alphabetic (A–Z). Letters are converted to numbers according to their position in the alphabet.

To calculate the numeric check digit (mapping from a to l): To calculate the alphabetic check digit (mapping from a to m):
 * l = (12a + 11b + 10c + 9d + 8e + 7f + 6g + 5h + 4i + 3j + 2k) mod 10
 * m = (13a + 12b + 11c + 10d + 9e + 8f + 7g + 6h + 5i + 4j + 3k + 2l) mod 26