Skip to content

Support Base85 (also known as Ascii85) #7

Open

Description

@dipu-bd

Add a Base85 codec (PDF, git binary patches) and the Z85 variant (ZeroMQ keys). Base85 packs 4 bytes into 5 characters.

Architecture fit

  • Block-wise radix on 4-byte groups (base-256⁴ → base-85⁵) on the same radix core introduced for Base58, with tail handling for partial final groups.
  • Web hazard: the 4-byte group is a 32-bit intermediate that overflows JS int-as-double shift semantics — use * and ~/, not bit shifts, and test on node first (failure mode Update regex for hash validation in crypt_data.dart #10).
  • Ship the standard Ascii85 alphabet and the Z85 alphabet as separate static const instances; toBase85/fromBase85 with codec: override.

Differential oracle: package:base_codecs (dev-dep) for Ascii85; vendor Z85 vectors from the ZeroMQ RFC.

Specs: https://en.wikipedia.org/wiki/Ascii85 · RFC 1924 · Z85 (ZeroMQ 32/Z85)

Effort: M · Sequence: after Base58, on the shared radix core.

Checklist

  • 4-byte block radix using * / ~/ (no shifts), verified on node
  • Partial-tail handling
  • Ascii85 + Z85 alphabet instances, alphabet-string assertions
  • Six standard test groups incl. differential vs base_codecs + Z85 vectors
  • README / CHANGELOG / example / test_integration updated

Activity

  1. added
    enhancement
    on Jul 22, 2026
  2. changed the title [-]Support Ascii85 (also known as Base85)[/-] [+]Support Base85 (also known as Ascii85)[/+] on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions