Story Details

  • A New ASN.1 API for Python

    Posted: 2025-04-18 14:11:40

    Trail of Bits is developing a new Python API for working with ASN.1 data, aiming to address shortcomings of existing libraries. This new API prioritizes safety, speed, and ease of use, leveraging modern Python features like type hints and asynchronous operations. It aims to simplify encoding, decoding, and manipulation of ASN.1 structures, while offering improved error handling and comprehensive documentation. The project is currently in an early stage, with a focus on supporting common ASN.1 types and encoding rules like BER, DER, and CER. They're soliciting community feedback to help shape the API's future development and prioritize features.

    Summary of Comments ( 12 )
    https://news.ycombinator.com/item?id=43728279

    Hacker News users generally expressed enthusiasm for the new ASN.1 Python API showcased by Trail of Bits. Several commenters highlighted the pain points of existing ASN.1 tools, praising the new library's focus on safety and ease of use. Specific positive mentions included the type-safe design, Pythonic API, and clear documentation. Some users shared their struggles with ASN.1 decoding in the past and expressed interest in trying the new library. The overall sentiment was one of welcoming a modern and improved approach to working with ASN.1 in Python.