libzbase32

Crates.iolibzbase32
lib.rslibzbase32
version2.0.1
sourcesrc
created_at2021-11-03 04:24:14.426631
updated_at2021-11-24 04:27:53.537604
descriptionAn implementation of the z-base-32 format for Rust. This implementation is no_std compatible.
homepagehttps://github.com/DaGenix/libzbase32
repositoryhttps://github.com/DaGenix/libzbase32
max_upload_size
id475991
size194,132
(DaGenix)

documentation

https://docs.rs/libzbase32

README

libzbase32

libzbase32 is a no_std compatible crate that supports encoding and decoding data in the z-base-32 format, as specified here.

Z-base-32 is intended to be easier for a human to work with than regular Base32 specified by RFC 4658.

Some of the key differences:

  • Z-base-32 a different alphabet ("ybndrfg8ejkmcpqxot1uwisza345h769") which consists of all lower-case letters (this library will accept lower-case or uppercase letters when decoding). The alphabet was chosen to make easier to use character appear more frequently in the output.

  • Z-base-32 that the parties encoding and decoding z-base-32 values have some mechanism to agree on the length of the data. z-base-32 never includes padding characters (eg: "=") in order to keep the representation more compact.

  • With Z-base-32, data lengths are specified in bits. This allows for more compact encodings. For example, in z-base-32, a 5 bit value can be encoded into a single character; while base32 would produce an 8 character encoded value (of which 6 characters are padding bytes).

Documentation

Modules documentation is available here.

License

This project is licensed under either of

at your option.

Commit count: 9

cargo fmt