Identity card number bits!

xiaoxiao2021-03-06  53

(1) The first 1, 2 digits represent: the code of the province;

(2) The third, 4 digits represent: the code of the city;

(3) The 5th, 6 digits represent: the code in the district;

(4) Section 7 ~ 14 digits indicate: birth year, month, day;

(5) The 15th, 16th digits indicate: the code of the police station;

(6) The 17th digit represents gender: odd represents male, even represents women;

(7) The 18th number is the school inspection code: also says that it is a personal information code, which is generally randomly generated with the computer.

Used to verify the correctness of your ID card. The calibration code can be a number of 0 to 9, and sometimes it is represented by x.

In addition to the last one, the last bit is only lower-write X

Section 7 ~ 14 should be the YYYYMMDD format can be converted into a date type string, and the citizens should have a ID card greater than how many years old will have an ID card, and the date should be satisfied. How many years I don't know how many years I don't know.

The 17th and sex should be paired

One of the 18th 1234567890X

I only know so much, if you know that all provinces, the codes of the city police station can also control more detailed

But I think the average person can't get this data.

转载请注明原文地址:https://www.9cbs.com/read-117447.html

New Post(0)