stdnum.mu.nid

ID number (Mauritian national identifier).

The Mauritian national ID number is a unique 14 alphanumeric identifier assigned at birth to identify individuals. It is displayed on the National Identity Card.

The number consists of one alphabetic character and thirteen digits:

  • the first character of the person’s surname at birth

  • 2 digits for day of birth

  • 2 digits for month of birth

  • 2 digits for year of birth

  • 6 digit unique id

  • a check digit

More information:

stdnum.mu.nid.calc_check_digit(number)

Calculate the check digit for the number.

stdnum.mu.nid.compact(number)

Convert the number to the minimal representation. This strips surrounding whitespace and separation dash.

stdnum.mu.nid.is_valid(number)

Check if the number provided is a valid RFC.

stdnum.mu.nid.validate(number)

Check if the number is a valid ID number.