[][src]Crate kennitolur


A kennitala (plural form: kennitölur) is a unique national identification number assigned by the Icleandic government, assigned to individuals (and organizations) in Iceland.

Number specification

Kennitalas are composed of 10 digits. The first six of these are the individual's date of birth in DDMMYY format. The seventh and eight digits are randomly chosen when the kennitala is allocated, ranging from 22 to 99. The ninth digit is the checksum digit, and the tenth indicates the century of the individual's birth.

Checksum digit

The dot product of the vector containing the first 8 digits of the kennitala is taken with the vector [3, 2, 7, 6, 5, 4, 3, 2]. Take the modulo 11 of that computation. If the result r is 0, the checksum digit is 0, otherwise it is 11 - r.



Struct that represents the kennitala of an Icelandic citizen or resident.



Errors which can come up when validating a given kennitala.