Quick Start
TLV Format
EMV data uses Tag-Length-Value encoding:Tag Format
- 1-byte tags: First byte doesn’t have bits 1-5 set to 11111
- 2-byte tags: First byte ends with 11111 (1F, 5F, 9F, DF)
- 3-byte tags: Second byte has high bit set
82- Single byte (Application Interchange Profile)9F26- Two bytes (Application Cryptogram)DF8101- Three bytes (if encountered)
Length Format
- 1-byte length: 0x00-0x7F (0-127 bytes)
- 2-byte length: 0x81 + 1 byte (128-255 bytes)
- 3-byte length: 0x82 + 2 bytes (256-65535 bytes)