Keep in mind that it's never 100% accurate...
I tested a friend's id on our forensic software. Her official ID is not valid, but as long as its the same number that is registered in Home Affairs... its fine.
o well at least its a start![]()
As a rule, we test the first 10 digits - this is in line with changes made some years ago. It's still not perfect, but it does give a unique number you can compare with those ID numbers that have changed in the past 14 years or so.![]()
Keep in mind that it's never 100% accurate...
I tested a friend's id on our forensic software. Her official ID is not valid, but as long as its the same number that is registered in Home Affairs... its fine.
Yeah - that script only works about 70% of the time. Since a lot of ID numbers get loaded onto our web-based solution (we provide a human capital management solution), we have a lot of problems with ID validation. I've tried several different versions of the same algorithm, but clients keep on complaining that some ID numbers get rejected. So we had to revert back to only checking on length (13 digits long) and first 6 digits vs. the date of birth. Sloppy, I know, but usable for now... (Plus a LOT less complain-mails from clients)
Funny thing though - most of the ID numbers even have the gender as incorrect! You won't believe how many queries we get about that...![]()
In accordance with the legislation,
the control figure which is the 13th digit of all identity numbers which have 08 and 09 is
calculated as follows using ID Number 800101 5009 087 as an example:
* Add all the digits in the odd positions (excluding last digit).
8 + 0 + 0 + 5 + 0 + 0 = 13...................[1]
* Move the even positions into a field and multiply the number by 2.
011098 x 2 = 22196
* Add the digits of the result in b).
2 + 2 + 1 + 9 + 6 = 20.........................[2]
* Add the answer in [2] to the answer in [1].
13 + 20 = 33
* Subtract the second digit (i.e. 3) from 10. The number must tally with the last number in the ID Number. If the result is 2 digits, the last digit is used to compare against the last number in the ID Number. If the answer differs, the ID number is invalid.
from this 13 + 20 = 33
you take the second number and minus ten by it 10 -3 = 7 which is same as the 13th number in the id number 800101 5009 087
Yes, but its one digit, i.e. 7 is one digit. But if the second digit is a zero, for instance, 10 + 20 = 30 hence
10 - 0 = 10 then you use the zero.
So, if you ever come across a round number in the last step, the last digit in the ID is 0.