A library for deciphering BER TLV data used in EMV (chip card transactions).
You might be wondering what some of the strange characters on a credit card receipt mean. Or you might be trying to achieve certification with Visa, Mastercard or Amex (perhaps even UnionPay).
The tests provide some idea of what kind of data this code can decipher. The EMVCo website has the full (1000+ page) specs. Add to that the Visa, Mastercard and Amex documents.
How might I use it?
In a couple of ways:
As a library in a java (or other JVM language) project doing wonderful things with chip card data.
On the web in a little tool. The code for this tool lives in another repo.
As a command line tool.
From Maven or Gradle
Dependency Information (available from Maven Central):
This will dump out some (hopefully) somewhat helpful help output:
Usage Main <decode-type> <value> [<tag-set>]
<decode-type> is one of
95: TVR
9B: TSI
82: AIP
8E: CVM List
9F34: CVM Results
9F6C: CTQ
9F66: TTQ
dol: DOL
filled-dol: Filled DOL
constructed: TLV Data
apdu-sequence: APDUs
bit-string: Bits
<value> is the hex string or '-' for standard input
<tag-set> is one of [EMV, qVSDC, MSD, Amex] defaults to EMV
For example to decode the Terminal Verification Results: