BASE91(1)
πΈ NAME πΈ
Okay bestie, meet base91(1) from the General Commands Manual β the little tool that basE91-encodes or decodes FILE, or standard input, and sends it straight to standard output. Slay. β¨
π¦ SYNOPSIS π¦
base91 [-d|--decode] [-o|--output] [-m|--buffer] [-v|--verbose]... [-w|--wrap] [--simd] [-h|--help] [-V|--version] [FILE]
β¨ DESCRIPTION β¨
The whole point, fr fr: basE91 encode or decode FILE, or standard input, to standard output. π
No FILE? Or FILE is literally -? Then it reads standard input, bestie. Easy.
π OPTIONS π
-d,--decodeβ Flip it to decode instead of encode. The format is auto-detected. SIMD streams are checked strictly: a byte outside the alphabet, a broken line layout, or an invalid length is an error, reported with its offset (exit status1). Legacy streams ignore bytes outside their alphabet, just like the C reference does. π΅οΈββοΈ-o,--output<FILE>β Write output toFILEinstead of standard output. πΎ-m,--buffer<SIZE>β UseSIZEbytes of memory for I/O buffers. Suffixes:b,K,M. Default:64K. π§Ί-v,--verboseβ Verbose mode: print statistics to stderr. Repeat it (-vv) for extra verbosity. π£οΈ-w,--wrap<COLS>β Wrap encoded lines afterCOLScharacters (0= no wrap; default76, or64with--simd, whereCOLSmust be a multiple of32). Has no effect when decoding. π--simdβ Use the SIMD fixed-width variant for encoding. Output begins with-and uses the SIMD alphabet (0x23-0x26,0x28-0x7E); not compatible with legacy Henke decoders. The format is auto-detected at decode time, so plain-dworks for both SIMD and Henke streams. Output contains no single-quote characters and is safe to single-quote in shell. Ignored when decoding. With--wrap, the value must be a multiple of32. β‘-h,--helpβ Print help (the page literally says: see a summary with-h). πββοΈ-V,--versionβ Print version. π·οΈ[FILE]β Input file (default: stdin). π₯
Bestie, if youβre decoding a SIMD stream, it is strict β one bad byte and itβs over. The error message names the problem and its byte offset, and you get exit status 1. π
π EXTRA π
π Examples π
Copy-paste these bad boys, bestie:
base91 file.bin > file.b91 encode binary file
base91 -d file.b91 > file.bin decode
b91enc < file.bin > file.b91 encode with no line wrapping
b91dec < file.b91 > file.bin decode
base91 --simd file.bin > file.b91s encode with SIMD variant
tar czf - dir/ | b91enc encode tar stream
π Exit status π
0β success. Iconic. π1β an error, including an invalid SIMD stream when decoding. The message names the error and its byte offset. π
π VERSION π
v0.3.2 β thatβs the version, bestie. β¨
π AUTHORS π
Algorithm by Joachim Henke; Rust port by Frederic Ruget. π«Ά
Thatβs the whole manual moment: base91 version 0.3.2, hanging out in the User Commands section, and the footer has no date listed β so we are absolutely not inventing one. Periodt. π
π¦ where this page comes from
- nixpkgs unstable: base91 0.3.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms