Skip to content

rrajaguk/BerTlv.NET

 
 

Repository files navigation

BerTlv.NET

Build status

BerTlv.NET is a library that makes parsing TLV data easy. It is especially useful for parsing things like EMV credit card transaction data.

Get It

You can install BerTlv.NET from nuget:

PM> Install-Package BerTlv.NET

Or download and build the source from here and reference the BerTlv.dll.

Use It

Using BerTlv.NET is very simple. Two static methods are exposed to you in the Tlv class (one for hex and one for a byte array). Example:

First add the using statement:

using BerTlv;

then:

ICollection<Tlv> tlvs = Tlv.ParseTlv("6F1A840E315041592E5359532E4444463031A5088801025F2D02656E");

// Use the tlvs collection now.

Changelog

1.0.1

Renamed Tlv.DataHex property to Tlv.HexData to be consistent with the naming convention of the rest of the Tlv.Hex* properties.

1.0.0

Initial release.

About

A library for parsing BER TLV data (like EMV credit cards).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 71.3%
  • JavaScript 23.6%
  • Batchfile 5.1%