#hashing #algorithm #hash

sdbm

SDBM is a non-cryptographic hashing algorithm

4 releases

0.1.3 Feb 15, 2019
0.1.2 Feb 15, 2019
0.1.1 Feb 14, 2019
0.1.0 Feb 14, 2019

#2433 in Algorithms

MIT license

6KB
77 lines

sdbm

View on Crates.io Documentation Build Status


SDBM is a non-cryptographic hashing algorithm.

Usage

To use it, simply add this to your Cargo.toml:

[dependencies]
sdbm = "*"

Using it is as simple as:

fn main() {
    dbg!(sdbm::sdbm_hash("Hello, Rustaceans!"));
}

This will print:

[src/main.rs:2] sdbm::sdbm_hash("Hello, Rustaceans!") = 98379892

No runtime deps