ASN1bean Overview

Latest release on maven central ASN1bean on github

ASN1bean (originally named jASN1) is a Java ASN.1 BER and DER encoding/decoding library, licensed under the Apache 2.0 license. It consists of a compiler (asn1bean-compiler) which creates Java classes from ASN.1 syntax. The generated classes can then be used together with the ASN1bean library to efficiently encode and decode messages using the Basic Encoding Rules (BER). The encoded bytes also conform to the Distinguished Encoding Rules (DER) which is a subset of BER.

Much effort has been made to make encoding and decoding BER messages using this library very efficient. Benchmarks suggest that it is faster than the Binary Notes Framework by factors of 3 and 6 for encoding and decoding respectively. Similarly it was found to be faster than JAC by factors of 8 and 4 for encoding and decoding.

Compilation of multiple inter-dependent ASN.1 modules defined in multiple files is supported.

Move from OpenMUC

Thanks to the courtesy of Fraunhofer ISE the ASN1bean project (then known as jASN1) was moved in 2019 from openmuc.org to beanit.com where it will be supported from now on.

References

ASN1bean was chosen by the European Space Agency & Telespazio VEGA as their open source ASN.1 Java tool of choice.