b23 checksum utility
- Rust 100%
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
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