italia / cie-nis-python-sdk

SDK for reading the NIS code from an Italian Electronic Identity Card (CIE) using Python
BSD 3-Clause "New" or "Revised" License
29 stars 7 forks source link

main-py error #10

Open danieldemari opened 2 years ago

danieldemari commented 2 years ago

Hi, i tried to read a card CIE 3 with main.py function, just for test system cannot access data.

Im using a utrust 3700 f reader

this is what i get

image

fdanna commented 2 years ago

I had the same problem on Windows! I then tried on the Mac and finally it worked. However: 1) only worked with python3 command, 2) there seems to be a bug in the progress bar code so I eliminated it and 4) I got rid of that silly code to hide characters.

Firstly, in your screenshot, you need to edit main.py and replace the 'YYMMDD', 'YYMMDD', '*****' with actual information. They should have put a comment there. So, if you put your birthdate, expiry date, and card number (the one that starts with CA) it should give you the data.

The whole process is rather slow but I don't know if that's NFC's fault or the code.

danielabrozzoni commented 2 years ago

Hey @fdanna, may I suggest taking a look at https://www.w3schools.com/python/python_lists_comprehension.asp if you find the code to hide characters "silly"? 😊

fdanna commented 2 years ago

I wasn’t criticizing the programmer. I just find hiding characters from the person who is viewing the information, especially with card in hand, to be a waste of time.