Base64, URL & SHA Digests
Strip trailing newlines with printf '%s' before encoding tokens or computing digests so hashes stay reproducible.
# Encode without newline
printf '%s' 'hello-world' | base64
# SHA-256 checksum on Linux and macOS
sha256sum archive.tar.zst
shasum -a 256 archive.tar.zst