aiid

Crates.ioaiid
lib.rsaiid
version0.0.2
sourcesrc
created_at2021-07-02 13:42:00.234334
updated_at2021-07-02 13:50:03.117386
descriptionAIngle base32 encoding scheme for keys, agents, identifiers, etc
homepage
repositoryhttps://github.com/AIngleLab/ai-id
max_upload_size
id417824
size28,615
cato (catocodex)

documentation

https://docs.rs/aiid

README

ai-id

AIngle base32 encoding scheme for keys, agents, identifiers, etc.

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);
}
Commit count: 11

cargo fmt