hash-ids 0.3.1

a fast hashids (hashids.org) implementation
Documentation
  • Coverage
  • 76.19%
    16 out of 21 items documented1 out of 16 items with examples
  • Size
  • Source code size: 21.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • kardeiz/hash-ids
    5 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kardeiz

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"));
}