Ghana's PIN (Personal Identification Number) - JavaScript Validation

17xande

Member
Joined
Mar 30, 2010
Messages
21
Reaction score
5
Location
Johannesburg
I'm trying to find any accurate definition of Ghana's equivalent of our ID number (which they call PIN) so that I can write a client-side script to validate this number in a form.
I haven't been able to find a script, or even a description of how that number is calculated. E.g. South Africa's ID number is a 13 digit number, the first 6 numbers represent the holder's date of birth, 7th digit represents the holders gender...

I've seen a few scripts used to validate South African ID's and written my own version of one. I'm fairly confident that I can create my own script to validate this number as long as I can find some detailed information about it, but so far all I've been able to find is that it's a randomly generated number. I don't even know how long it's meant to be.

I've found this page on Wikipedia that talks about the PIN and the Ghana card itself, but gives no other information that I could use. I found another government site from Ghana that wasn't much help as well.

Does anyone know where I can find more information on this number?
 
Last edited:
from what I can see it's a randomly generated number, haven't gone through the NIA Act though. The first 3 letters gives you the country/origin. GHA would be a citizen while ZAR would be a foreigner from South Africa for example.

Check if you can get a copy of the NIA Act, it should explain it in more detail there
 
Thanks, that's more than I managed to find.
I called the Embassy of Ghana in Pretoria hoping someone could help me there, but they had no idea what I was talking about and asked me to send them an email. Fingers crossed.
I'll definitely check that NIA Act though, it will probably be my best shot at cracking this.

Thanks again for the lead.

EDIT:
Ok, I just tried to find the act but so far I've got nothing. I'll keep on looking, but if you find (or have already found) a link to the act please let me know.

Thanks
 
Last edited:
I've bookmarked Acidrazor's profile - if I ever need strong Googlefu I will seek out the master :D
 
Top
Sign up to the MyBroadband newsletter
X