der-ascii for Mac
DER ASCII is a small human-editable language to emit DER (Distinguished Encoding Rules) or BER (Basic Encoding Rules) encodings of
der-ascii — overview
DER ASCII
DER ASCII is a small human-editable language to emit DER (Distinguished Encoding Rules) or BER (Basic Encoding Rules) encodings of
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.
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.
Details
可逆的 DER 和 BER 美化打印器
How to install der-ascii
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
This project has no GitHub releases yet.
Prebuilt bottle platforms
Official Homebrew bottles cover:
- Apple silicon · latest macOS
- Apple silicon · macOS 26 Tahoe
- Apple silicon · macOS 15 Sequoia
- Linux · ARM64
- Linux · x86_64
⚠️ No prebuilt bottle for Intel Macs; Intel users need brew install --build-from-source to build from source.
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| der-ascii | 0.11.0 | Apache-2.0 | CLI | 25 |
| bibclean | 3.07 | GPL-2.0-or-later | CLI | 17 |
| tidy-viewer | 1.8.93 | Unlicense | CLI | 30 |
| shadowenv | 3.6.0 | MIT | CLI | 15 |
Similar apps: Command-line Tools
bibclean
bibclean is a small command-line tool for LaTeX users, designed specifically to tidy up and…tidy-viewer
Tidy Viewer (tv) Tidy Viewer (tv) is a cross-platform data pretty printer that uses column…shadowenv
Reversible directory-local environment variable manipulationscamlp5
Preprocessor and pretty-printer for OCamlopenssl@4
Cryptography and SSL/TLS Toolkitxz
General-purpose data compression with high compression ratioCategories: Command-line Tools