/
README (full)
nix-base32
This crate implements conversion between a [u8] slice and its Nix-specific base32
representation.
SHA256 hash codes in nix are usually encoded in base32 with
an unusual set of characters (without E O U T).
assert_eq!(
to_nix_base32(
&hex::decode("ab335240fd942ab8191c5e628cd4ff3903c577bda961fb75df08e0303a00527b")
.unwrap()
),
"0ysj00x31q08vxsznqd9pmvwa0rrzza8qqjy3hcvhallzm054cxb"
);
| dir | debian/ |
| dir | src/ |
| file | .cargo_vcs_info.json |
| file | .gitignore |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE-APACHE |
| file | README.md |