Civil ID Equation for check digit
December 23, 2008 on 2:27 pm | In .Net, Gov, PACI, Programming |
you can verify if the civil id number is correct or not by the following equation :
|
11 - Mod(( c1 * 2 ) + ( c2 * 1 ) + ( c3 * 6 ) + ( c4 * 3 ) + ( c5 * 7 ) + |
update:
one of the guys ask me to explain how the formula is working and I did on rtf format [link]
17 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^


I heard Knet once found an invalid Civil ID number
Thanks, I missed the equation.
Comment by Bashar — December 23, 2008 #
Could you please explain the equation? i didnt get it, I mean whats the C1 C2… and at the end whats with the 11?
Comment by Checkmate — December 23, 2008 #
I will update the post just give me time to write the explanation with example.
Comment by Mahbob — December 24, 2008 #
You should have written a small program and sold it to the financial sector in Kuwait….can’t tell you just how valuable this equation can be to them!!
Well Done.
Comment by The Aggressor — December 24, 2008 #
Thanks for the complement aggressor I like to share information my friend
.
Comment by Mahbob — December 24, 2008 #
hmm I didn’t understand the “Mod” and (80,11) .. is that a point? Mod is it the median? something that has to do with the standard deviation?
sorry
Comment by Checkmate — December 24, 2008 #
I tried every mathematical function that gives me the answer of 3 with (80 and 11), the only thing that I got is that (80/11=7 Remainder 3) is that it? Mod gets the remainder of a division?
Comment by Checkmate — December 24, 2008 #
That’s brilliant. Did the masterminds of the civil ID do this on purpose? I thought it was just a bunch of dates and serials.
Comment by Bojacob — December 24, 2008 #
Checkmate: I will try to make small script and add it to the post
Bojacob: It’s not bunch of dates and serials
And I will try to find more on their systems and write on it my friends for education purpose only
Comment by Mahbob — December 24, 2008 #
what i noticed was
the 2nd & 3rd are the year of birth
4th,5th month
6th 7th day
the first if your year of birth was 18xx or 19xx it becomes 2 if after 2000 its a 3
the remaining 5 digits no idea
Comment by mjkout — December 29, 2008 #
Based on your equation i have created a web tool to check the validity of a civil id number
http://www.q8i.org/civil_id_check.php
Comment by mjkout — December 29, 2008 #
well done mjkout
Comment by Mahbob — December 29, 2008 #
mjkout: if you want to check it out you can download files for the names with cid for the elections 2003 from moi link you can find it here [link]
by the way this blocked in the last election you can check that here on their official site but they didn’t remove the old site [link]
Comment by Mahbob — December 29, 2008 #
جربت وايد مرات، ولا مرة ضبط.. أكيد في خطوة قاعدة أسويها غلط
Comment by q8health — February 1, 2009 #
Dear Sir,
While i was cheking in ‘PACI’ website, i found the below details “This ID card is canceled, Furthermore the card holder has another valid ID card with a different Serial No” what is the meaning of this sentence?
I am expecting your answer very soon.
regards,
suneer
Comment by Suneer — March 7, 2009 #
Suneer: I don’t know what that’s mean but if some body knows he will reply to you .. sorry man
Comment by Mahbob — March 8, 2009 #
Thanks, I was searching for the same, very valuable for me. Keep the good work going.
Thank You
IHN
Comment by IHN — April 29, 2009 #