ZsBT / mrz-java

Machine-Readable Zone parser for Java
70 stars 40 forks source link

add final check digit validation in SlovakId2_34 #10

Open ZsBT opened 7 years ago

ZsBT commented 7 years ago

final check digit validation is missing from SlovakId2_34 :: fromMrz() can someone please fix this

GoUpNorth commented 6 years ago

The slovak id card seems to fit the ICAO mrtd1 specifications, which the library already supports. I don't have any issue with other mrtd1 documents such as chile id card or albanian card.

ZsBT commented 6 years ago

Were you able to test a Slovak ID card (unfortunately I don't have any)? If follows the standards, we could just comment it out and let the base mrtd1 class to parse it.

GoUpNorth commented 6 years ago

You can find a sample of a recent slovak id card on this website:

However, on the same website you can find an older id card sample from the beginning of the 90s (http://www.consilium.europa.eu/prado/en/SVK-BO-01001/index.html), which does not seem to be ICAO compliant. I imagine that's the one the class SlovakId2_34 is referring to. I couldn't find any english specifications describing the content of its MRZ and the check digits calculation.

But if it can make you feel better, this document was last issued in 2008 (the year in which this one was first issued http://www.consilium.europa.eu/prado/en/SVK-BO-02001/index.html) and its maximum validity is 10 years. So from 2018, those non ICAO documents won't be used anymore.

P-A

ZsBT commented 6 years ago

Good finding, we'll just remove this type due to obsolete documents.