b23 checksum utility
Find a file
2026-05-25 04:05:39 -05:00
src fix: die!() prints to stderr 2026-05-25 03:57:53 -05:00
.gitignore init 2026-03-17 23:52:11 -05:00
Cargo.lock chore: update dependencies 2026-04-27 14:53:32 -05:00
Cargo.toml init 2026-03-17 23:52:11 -05:00
LICENSE init 2026-03-17 23:52:11 -05:00
README.md doc: correct b23 sum length 2026-05-25 04:05:39 -05:00

b23

b23 checksum utility

A b23 sum is a URL-safe base64-encoded BLAKE3 sum truncated to 16 bytes. The sum weighs in at 23 characters. I'm bad at counting, and a b23 sum is actually 22 characters excluding \n -- oh well.

This is finished software.

Build

cargo build --release
install -vDm755 target/release/b23 -t /usr/bin/

Usage

Here's a basic example.

b23 README.md LICENSE Cargo.*

Here's an example with stdin.

echo hi | b23
echo hi | b23 - # equivalent

Here's how you might check with stdin.

echo ujFQV4dMxFXOyLlXGWOM9A LICENSE | b23 -c

Here's a roundtrip example, without and with a file.

b23 Cargo.* | b23 -c
b23 Cargo.* > check.txt && b23 -c check.txt && rm -vf check.txt

And here's a bonus example.

b23 "$(type -pa b23)" | cut -f1 | wc -c