Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
275 views
in Technique[技术] by (71.8m points)

Reading MIFARE access cards data using android NFC

So here is the problem. I'm trying to read the data stored on my work access card using android NFC. I have been able to successfully read the data into data type ByteArray, but when I try to convert this value into a string using Sting(byteArray, UTF-8) i get jargons like this 5?〕CG!?昕?>?.

I have tried several encoding charsets but all to no avail. So my guess is the data stored on these access cards are not string value, but if not, what kind of data can be stored there and how specifically can I get to read it successfully. All I need I believe should be stored is just my name or staff ID

question from:https://stackoverflow.com/questions/65884465/reading-mifare-access-cards-data-using-android-nfc

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Generally because of the security requirements of access cards any data on the card is encrypted with a key that usually includes the card's UID.

So you would need the UID which you can get from the card.

And knowledge of the encryption algorithm and the encryption key, which you are unlikely to be able to obtain.

Thus I don't think you will be able to decipher what is stored on the card.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...