Closed anouk closed 1 year ago
Thanks for your contribution
Actually, both Convert.ToInt32 should be changed to Convert.ToUInt64 Usually all hex strings are interpreted as unsigned integers, otherwise, the result is very often negative. Tested with several cards, Desfire EV2, EV3, Classic EV1 I found this code very useful, nice proof of concept code :)
https://github.com/tanersahincom/NFCAndroidExample/blob/43c4f2fc6a847f9086bb63b085e0ae160630f9a6/NFCAndroidExample/MainActivity.cs#L101
Reading Mifare Ultralight caused application to crash with INT32. Resolved by changingto 64
var number = Convert.ToInt64(num, 16);