#hasher #hash-map #hash #hashing #museair

musemap

Fast DoS-resistant hashmap based on MuseAir hash algorithm

2 releases

0.1.0 Jan 4, 2025
0.1.0-alpha Dec 13, 2024

#2253 in Algorithms

Download history 140/week @ 2024-12-11 5/week @ 2024-12-18 158/week @ 2025-01-01 13/week @ 2025-01-08

180 downloads per month

MIT/Apache

5KB
73 lines

MuseMap

Fast DoS-resistant hashmap based on MuseAir hash algorithm.

The output of the Hasher in this crate may vary depending on the version or the platform. It should only be used for in-memory maps.

Due to MuseAir is non-crypto, this crate should NOT be used for cryptographic purpose.

Quick usage

use musemap::{HashMap, HashMapExt};

let mut map = HashMap::new();
map.insert(1, 2);
map.insert(3, 4);

assert_eq!(map.get(&1), Some(&2));
assert_eq!(map.get(&3), Some(&4));

Dependencies

~25KB