A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/google/der-ascii below:

google/der-ascii: A reversible DER and BER pretty-printer.

DER ASCII is a small human-editable language to emit DER (Distinguished Encoding Rules) or BER (Basic Encoding Rules) encodings of ASN.1 structures and malformed variants of them.

It provides two tools, ascii2der and der2ascii, to convert DER ASCII to a byte string and vice versa. To install them, run:

go install github.com/google/der-ascii/cmd/...@latest

These tools may be used to create test inputs by taking an existing DER or BER structure, disassembling it with der2ascii into DER ASCII, making adjustments, and assembling back into binary with ascii2der. This avoids having to manually fix up all the length prefixes. As a bonus, it acts as a human-readable view for DER structures.

For the language specification and basic examples, see language.txt. The samples directory includes more complex examples from real inputs.

The DER ASCII language itself may be extended over time, but the intention is for extensions to be backwards-compatible. Specifically:

This is not an official Google project.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4