# asn1lib

> ASN.1 encoder and decoder for Dart, using BER encoding

Source: https://talira.ai/catalog/asn1lib-ck8gn76p
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / encoding](https://talira.ai/categories/libraries/encoding), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-2-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Warren Strange](https://talira.ai/orgs/wstrange.md)

asn1lib is Warren Strange's Dart library for encoding and decoding ASN.1 with BER: you build ASN.1 objects (sequences, integers, octet strings, booleans and the rest) and get their bytes, or parse bytes back into objects, optionally in a relaxed mode that returns a generic object for structures it doesn't support instead of throwing.

## Links

- GitHub: https://github.com/wstrange/asn1lib

## Problems it solves

- parse ASN.1 data in a Dart or Flutter app
- encode a key or certificate structure as ASN.1 BER bytes in Dart
- decode BER-encoded bytes into objects in Dart

## Features

- encode ASN.1 objects to BER bytes
- parse BER bytes into ASN.1 objects
- relaxed parsing for unsupported structures

## Trust

Overall: 0.40 out of 1.
Signals: maintenance 0.69, adoption 0.30, momentum 0.02, community 0.55, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 13 commits in the last 90 days
- 32 GitHub stars
- 23 contributors
- backed by Warren Strange

## Alternatives

- [convert (Dart)](https://talira.ai/catalog/convert-dart-reg206q1.md): Encoders and decoders for converting between data representations in Dart

## Sources

[^1]: https://github.com/wstrange/asn1lib/blob/master/LICENSE (checked 29 Nov 2026)
