enber(1)

πŸ“¦
version 0.9.28 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– enber(1) β€” the glow-up page πŸ’–

Version 0.9.28 ✨ bestie, this is the manual for enber, and yes we're doing this whole thing together, no skipping, no skimming 🫢


✨ NAME ✨

enber β€” take that unber XML output and turn it right back into BER πŸ’…


🌸 SYNOPSIS 🌸

enber [-n] [-] [input-filenames...]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. enber converts the XML-formatted files that unber(1) produces back into BER format. it's literally the reverse glow-up ✨

and a single dash - means standard input, bestie. like, "read from stdin, pls" πŸ’«


πŸ‘‘ OPTIONS πŸ‘‘

  • -n β€” turn OFF input validation πŸ™ˆ by default enber does some basic validity checks against the XML input, so -n is the "nah, trust me" flag πŸ’€

πŸ”₯ EXAMPLES πŸ”₯

Decode a BER sequence and immediately encode it right back β€” iconic round-trip behaviour, no cap:

unber -p filename.ber | enber - > reconstructed.ber

πŸ’œ FOOTNOTES πŸ’œ

ngl, this program does NOT attempt to perform full-fledged XML parsing. it's merely compatible with unber(1)'s output. periodt. πŸŽ€

in particular, the XML style comments are not supported 😭

so here's the tea: a hash "#" or two dashes "--" following a whitespace is treated as a beginning of a comment line, which is ignored completely. empty lines are ignored as well πŸ’«

The following example enber(1) input demonstrates the use of comments:

<C O="0" T="[1]" TL="2" V="2">
    <I O="2" T="[1]" TL="2" V="Indefinite">
    -- </I O="4" T="[UNIVERSAL 0]" L="4">
    # Do not terminate:
    # the absence of end-of-content octets is intentional!
</C O="6" T="[1]" L="6">

🌈 SEE ALSO 🌈

unber(1), asn1c(1). go read those too, they're giving main character energy πŸ‘‘


🧚 AUTHORS 🧚

Lev Walkin <vlm@lionet.info>. absolute legend, we stan 🫢


and that's the whole page, bestie!! this was the unber(1) counterpart page, dated 2016-01-23, and the version we've been living in this whole time is 0.9.28 ✨ bye bye, go convert something πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from