asn1lib 0.6.5

Dart native js
Flutter Android iOS web

An ASN1 parser library for Dart. Encodes / decodes from ASN1 Objects to BER bytes

ASN.1 Parser for Dart #

Encodes & decodes ASN1 using BER encoding.

There is just enough implementation here to get an LDAP client library working. Contributions welcome.

Samples #

Encoding #

import 'package:asn1lib/asn1lib.dart';

var s = ASN1Sequence();
s.add(ASN1Integer(23));
s.add(ASN1OctetString('This is a test'));
s.add(ASN1Boolean(true));

// GET the BER Stream
var bytes = s.encodedBytes;

Decoding #

import 'package:asn1lib/asn1lib.dart';

// e.g. bytes from the Encoding Example
var p = ASN1Parser(bytes);
var s2 = p.nextObject();
// s2 is a sequence...
0
likes
110
pub points
98%
popularity

An ASN1 parser library for Dart. Encodes / decodes from ASN1 Objects to BER bytes

Repository (GitHub)
View/report issues

Documentation

API reference

Uploaders

warren.strange@gmail.com
stevenroose@gmail.com
aic7to@gmail.com

License

BSD (LICENSE)

More

Packages that depend on asn1lib