Forum Moderators: open

Message Too Old, No Replies

Does anyone have code to validate Chinese ID numbers?

         

hermes

3:21 pm on Jul 21, 2005 (gmt 0)

10+ Year Member



Does anyone know of any server side code out there (preferably php) that can validate an entered chinese id number? ie. is it a valid number or is someone trying to spoof it?

guoqi

5:41 pm on Jul 21, 2005 (gmt 0)

10+ Year Member



that can validate an entered chinese id number

I don't know what is the difference between Chinese id number and English id number. In China, every one use 1,2,3,4... as well.

hermes

6:43 pm on Jul 21, 2005 (gmt 0)

10+ Year Member



The first six digits of the ID card indicates the district or county where the cardholder registers, and the seventh to 14th show the person's birth date.

The 15th to 17th digits mark the sequence number for people born on the same day who apply for the card in the same district or county, with odd numbers for males and even numbers for females.

The last digit is a number obtained after calculating the first 17 digits through a formula, with X representing 10.

This digit was added when the number's digits were increased from 15 to 18, while another two newly added digits were the first digits of
the year number in the cardholder's birth date.

guoqi

4:53 am on Jul 22, 2005 (gmt 0)

10+ Year Member



I understand what you mean by Chinese id now. I have not done it before. Good luck.

tntpower

9:37 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



You have to pay for this. 5 RMB per time. Volume discount is available, I think.

tntpower

9:53 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



The website is www.id5.cn. All contents are in Chinese.

hermes

10:40 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



That is an excellent, excellent find.

Do you know if their lookup actually uses a database of all the chinese id numbers - or do they just use a rule approach - testing if the submitted chinese id follows the rules laid out earlier in this thread?

tntpower

1:01 am on Aug 7, 2005 (gmt 0)

10+ Year Member



This service connects with the database (maybe a mirror database) of Ministry of Public Safety. So, you are ensured that the service is reliable.

It contains 350 million Chinese ID information at this time and will contain all of Chinese ID information by 2006.