TartuBus - metrodroid/metrodroid GitHub Wiki

Tartu Bus card in a NDEF card on Mifare Classic. It contains two records:

  1. A custom record of type pillet.ee:ekaart:2
  2. Cryptographic signature of first record

First record

It's a structured BER-TLV with following contents:

type=66 len=19
 type=5f26 len=06 "160107" (issue date, typically couple of month before selling date)
 type=59 len=04 "      " (4 spaces)
 type=5f28 len=03 "233" (country ID for Estonia)
 type=5f27 len=01 "1" (probably network number)

type=6e len=1e
 type=5a len=13 Long card number, in ascii
 type=53 len=07 Card UID, binary