LuaRocks.org had a security incident in September 2026. Read the incident report.

opentlv

OpenTLV Lua bindings – A cross-language TLV parser, encoder, decoder and validation toolkit for BER-TLV, ASN.1, EMV and binary protocols, powered by a portable C core.

$ luarocks install opentlv

OpenTLV - One toolkit. Multiple formats. Multiple languages.

OpenTLV is an open-source, cross-platform toolkit for parsing, encoding, decoding, querying and validating Tag-Length-Value (TLV) binary data.

Designed for developers working with binary protocols, smart cards, payment systems, embedded devices and network communication, OpenTLV provides a powerful and reusable alternative to writing custom TLV parsers.

KEY FEATURES

TLV Parser & Encoder - Read, build and traverse structured Tag-Length-Value data.

Multiple TLV Formats - A flexible architecture for BER-TLV, ASN.1-related encodings, EMV and other binary protocols.

Query & Validation - Tools for inspecting, searching and validating binary structures.

Cross-Language Ecosystem - A shared C core with bindings for Lua, Python, Rust, JavaScript/WebAssembly and Go.

Portable C Core - Designed for portability, modularity and integration into native applications.

Open Source - MIT licensed, with an emphasis on correctness, testing and interoperability.

OPENTLV FOR LUA

The Lua binding provides access to OpenTLV's native C functionality for binary data processing, protocol analysis, automated testing and rapid prototyping.

Compatible with Lua 5.1-5.4 and LuaJIT.

USE CASES

TLV parsing, BER-TLV decoding, EMV data inspection, smart card data processing, binary serialization, protocol development, embedded systems and automated protocol testing.

EXPLORE THE OPENTLV ECOSYSTEM

Core Library: https://github.com/OpenTLV/opentlv

Lua Bindings: https://github.com/OpenTLV/opentlv-lua

All Bindings & Tools: https://github.com/OpenTLV

Versions

0.3.0-126 days ago199 downloads

Dependencies

lua >= 5.1

Labels

Manifests