[−][src]Crate hash_ids
hash-ids
A fast, dependency-free implementation for hashids.
Usage
fn main() { let hash_ids = hash_ids::HashIds::builder() .with_salt("Arbitrary string") .finish(); assert_eq!("neHrCa", hash_ids.encode(&[1, 2, 3])); assert_eq!(vec![1, 2, 3], hash_ids.decode("neHrCa")); }
Structs
HashIds | The encoder/decoder container |
HashIdsBuilder | Builder for a |
HashIdsBuilderWithCustomAlphabet | Same as |
Enums
Error | Error container, for custom alphabets that won't work |