Text: add base32 codecs (RFC 4648 and Crockford) #43

Closed
opened 2026-12-03 10:24:26 +00:00 by faumaray · 1 comment
Owner

Context: Forge needs base32 for TOTP seeds, recovery codes and opaque IDs. It currently ships a temporary verified implementation and tracks this as VL-TEXT-01.

Need: encode/decode for RFC 4648 base32 (case-insensitive decode, strict invalid-character and non-zero pad-bit rejection) and Crockford base32 (i/l→1, o→0, reject u, skip separators), with bounded inputs and wiped partial output on failure.

Tests/gate: RFC 4648 section 10 vectors padded/unpadded/lowercase, every alphabet symbol, invalid texts, round trips across lengths and boundary sizes. Forge M04 replaces its temporary codec with this.

Context: Forge needs base32 for TOTP seeds, recovery codes and opaque IDs. It currently ships a temporary verified implementation and tracks this as VL-TEXT-01. Need: encode/decode for RFC 4648 base32 (case-insensitive decode, strict invalid-character and non-zero pad-bit rejection) and Crockford base32 (i/l→1, o→0, reject u, skip separators), with bounded inputs and wiped partial output on failure. Tests/gate: RFC 4648 section 10 vectors padded/unpadded/lowercase, every alphabet symbol, invalid texts, round trips across lengths and boundary sizes. Forge M04 replaces its temporary codec with this.
Author
Owner

Implemented as Text base32 codecs on branch issue-43-base32 (commit 2eb3bd2), merged into main as add5999. Tests pass. Closing as done.

Implemented as Text base32 codecs on branch `issue-43-base32` (commit `2eb3bd2`), merged into `main` as `add5999`. Tests pass. Closing as done.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Void/Library#43