GithubHelp home page GithubHelp logo

isabella232 / der-ascii Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/der-ascii

0.0 0.0 0.0 116 KB

A reversible DER and BER pretty-printer.

License: Apache License 2.0

Go 100.00%

der-ascii's Introduction

DER ASCII

Build Status

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 get github.com/google/der-ascii/cmd/...

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.

Backwards compatibility

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

  • The command-line interface to ascii2der and der2ascii will remain compatible, though new options may be added in the future.

  • Previously valid inputs to ascii2der will remain valid and produce the same output. In particular, checking in test data as ascii2der inputs should be future-proof, though it is recommended to check in the generated version as well in case of mistakes.

  • Previously invalid inputs to ascii2der may become valid in the future if the language is extended.

  • der2ascii is necessarily a heuristic, so its output may change over time. For example, later revisions may recognize new OIDs, tweak the formatting, or disassemble a malformed DER input in a (hopefully) more useful form.

Disclaimer

This is not an official Google project.

der-ascii's People

Contributors

alex avatar cem- avatar davidben avatar daviddrysdale avatar ericroman920 avatar vasilvv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.