Skip to main content

Know when a NRIC number is fake - steps to validate one

With the recent Covid-19 pandemic, the Singapore government has mandated the use of SafeEntry NRIC check-ins to facilitate contact tracing. Before entering any store/ building, everyone is required to register their NRIC number either by the NRIC card, or using the SafeEntry app. This process is called the SafeEntry NRIC check-in. Singapore is the first in the world to implement a country-wide contact tracing system, and many countries have lauded Singapore for her efficiency and quick-thinking. When the mobile app for SafeEntry NRIC check-in was launched, many countries showed interest in the SafeEntry NRIC technology.

Because of its prevalent use during this period, you must be wondering...

What is a Valid NRIC Number?

Is S981234A a valid NRIC number?  What about T9823212Z? The NRIC is used for many purposes in Singapore. While it may seem totally random, there is a actually formula behind how each NRIC number is generated. Here's a quick recap on the algorithm! 

The structure of the NRIC/ FIN consists of 1 character, 7 digits, then a checksum character (e.g. @xxxxxxx#).

Singapore NRIC card with identification number
Sample of NRIC Card with Identification Number

First Letter of the NRIC (e.g. @)

The first letter can be "S", "T", "F" or "G" depending on the status of the holder. The table below details the mutually exclusive and exhaustive conditions:

First letter in NRIC

Condition

S

Singapore citizens and permanent residents born before 1 January 2000

T

Singapore citizens and permanent residents born on or after 1 January 2000

F

Foreigners issued with long-term passes before 1 January 2000

G

Foreigners issued with long-term passes on or after 1 January 2000


It is widely believed that "S" stood for "Singapore" and "F" for "Foreign". "S" is also the 19th Engligh letter, representing births from the 1900s. The "T" and "G" ranges introduced in 2000 were simply the next letter in the English alphabet.

7-digit Serial Number of the NRIC (e.g. xxxxxxx)

For the NRIC, the first 2 digits represent the year that you are born (i.e. 98xxxxx suggests the person is born in 1998). The next 5 digits are simply a counter assigned in the order of babies born in that year.

Unfortunately, FINs are randomly assigned and do not identify with the holder's time of birth or year of issuance in any capacity.

Last Letter of the NRIC (e.g. #, the checksum)

Though not publicly announced, the algorithm to calculate the checksum is easily reversed engineered. Here is a step-by-step tutorial on how to calculate the checksum letter for a valid NRIC number. (link)

Now you know what happens during a SafeEntry NRIC check-in when the barcode reader scans your NRIC number to log your check-in!

Comments

Popular posts from this blog

How to read barcodes? Find out how they really work.

Barcodes are everywhere, on the packaging of every product sold commercially in stores, on parcels for delivery, and even used for identification on membership cards. They are even used to make payments these days. What exactly is a barcode? A barcode is an image which consists of bars and spaces. This is a very popular method to store data (numerals and characters) in a machine-readable way representation.  History of Barcodes The barcode was created by Norman Joseph Woodland and Bernard Silver and patented in the US in 1951. The creation depended on Morse code that was extended to thin and thick bars.  Barcodes turned out to be monetarily successful when they were utilized to automate supermarket checkout systems, an errand for which they have gotten become almost universal. The Uniform Grocery Product Code Council had picked, in 1973, the barcode configuration created by George Laurer. Laurer's barcode, with vertical bars, printed better than the circular barcode created by Wood

How to Make Your Own NRIC Barcode [Python Tutorial]

Ever wanted to create a barcode from your NRIC number? Ever wanted to build a Python program in 2 steps? By the end of this tutorial, you will have made a 2-step NRIC Barcode Generator! PS: With basic Python skills, the tutorial is fail-proof! Rationale As a human being on earth, everyone is issued a unique identification number at birth. Singapore is no exception, and we Singaporeans are labelled with a National Registration Identity Card (NRIC number) number.  Non-Singaporeans are also issued a version of NRIC number, called Foreign Identification Number (FIN). The NRIC number is king in Singapore, where it is used to apply for schools, driving tests, army enlistment, HDB residence. From young, the need to memorise these 9 characters has been instilled in us. But sometimes we may forget, or recall our NRIC number incorrectly.  This is how  whatismybarcode.blogspot.com is born! With the advent of technology, there must be a simpler and more accurate way to recall our NRIC number. Wha