https://github.com/coolbong/javatlv
https://github.com/coolbong/javatlv
dgi emv iso7816 smartcard tlv
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/coolbong/javatlv
- Owner: coolbong
- License: mit
- Created: 2022-03-03T09:14:06.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-09T04:56:51.000Z (12 months ago)
- Last Synced: 2025-06-09T05:29:03.554Z (12 months ago)
- Topics: dgi, emv, iso7816, smartcard, tlv
- Language: Java
- Homepage:
- Size: 193 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
# JavaTlv
Java tlv parser
[ISO7816 part 4 BER-TLV](https://cardwerk.com/iso7816-4-annex-d-use-of-basic-encoding-rules-asn-1/)
## Example for parse FCI
```java
String resp = "6F20840E315041592E5359532E4444463031A50E8801015F2D046B6F656E9F110101";
Tlv tlv = Tlv.parse(resp);
assert tlv.getTag() == "6F";
assert tlv.getLength() == 0x20;
// find dedicated file name
Tlv df_name = tlv.find("84");
// find FCI Proprietary Template
Tlv fci_prop_template = tlv.find("A5");
```
## compile , deploy
mvn clean compile deploy
https://www.sktenterprise.com/bizInsight/blogDetail/dev/2721