Expand description
AIngle AI-ID base32 encoding utility.
§Example
extern crate aiid;
fn main() {
let enc = aiid::aiidEncoding::with_kind("ais0").unwrap();
let key = enc.encode(&[0; 32]).unwrap();
assert_eq!("aiSciacbd", key);
let buffer = enc.decode(&key).unwrap();
assert_eq!([0; 32].to_vec(), buffer);
}
Structs§
- aiid
Encoding - an instance that can encode / decode a particular aiid encoding configuration
- aiid
Encoding Config - represents an encoding configuration for aiid rendering and parsing
- aiid
Error - a simple struct(String) for reporting aiid errors
Type Aliases§
- aiid
Result - aiid Result type