National Identification Number - Romania

Romania

In Romania each citizen has a Numerical Personal Code (Cod Numeric Personal - CNP), which is created by using the citizen's gender and century of birth (1/3/5/7 for male, 2/4/6/8 for female and 9 for foreign citizen), date of birth (encoded in six digits), the country zone (encoded on 2 digits, from 1 to 52 or 99), followed by a serial number (encoded on 3 digits) and a checksum (encoded on one digit) Ex: GYYMMDDCCNNNC.

The first digit encodes the gender of person as follows:

1 male born between 1900 and 1999
2 female born between 1900 and 1999
3 male born between 1800 and 1899
4 female born between 1800 and 1899
5 male born after 2000
6 female born after 2000
9 foreign citizen

The country zone is a code of Romanian county in alphabetical order. For Bucharest the code is 4 followed by the sector number.

The checksum is calculated as following: every digit from CNP is multiplied with the digit with the same index from the number 279146358279, the results are sumed up and then divided by 11.

If the remainder is 10 then the checksum digit is 1, otherwise is the remainder itself.

For example:

CNP ID = 1800101221144

Checksum value =

1 * 2 +
8 * 7 +
0 * 9 +
0 * 1 +
1 * 4 +
0 * 6 +
1 * 3 +
2 * 5 +
2 * 8 +
1 * 2 +
1 * 7 +
4 * 9
= 136

To calculate the checksum digit (the last digit of the ID) take the above figure and divide by 11. The remainder is the checksum digit.

i.e. 136 / 11 = 12, with a remainder of 4
11 goes into 136 12 times, leaving a remainder of 4

Therefore the checksum digit (the last digit of the ID) is 4

This article may contain original research. Please improve it by verifying the claims made and adding references. Statements consisting only of original research may be removed.

Read more about this topic:  National Identification Number