tananaev / passport-reader

e-Passport NFC Reader Android app
360 stars 137 forks source link

fix error scenario if user enters lowercase letters in passport number #63

Closed GlennReilly closed 2 months ago

GlennReilly commented 2 months ago

Hi Anton, I found I was getting an error org.jmrtd.CardServiceProtocolException: BAC failed in MUTUAL AUTH (SW = 0x6700: WRONG LENGTH) (step: 2) if I entered my passport as pa1234567 instead of PA1234567, so thought you might consider this quick fix for it.

Regards, Glenn