1 unstable release

0.1.0 Nov 22, 2023

#1719 in Cryptography

24 downloads per month

MIT license

25KB
761 lines

Hashell

Implementation of hashing function made by Mark_Rus-Scratch-Lab in Rust. Some computations of this function were omitted for sake of performance, which means it can fail in certain untested scenarios or simply produce a different hash.

Example

use hashell::hash_string;

fn main() {
    assert_eq!(hash_string("some value", 16), "5149710603511119".to_owned());
}

lib.rs:

Hashell function ported from from scratch to rust (see https://scratch.mit.edu/projects/683935277/). This function can fail to compute hash in some untested corner cases, but generally it works fine with most values.

Example

use hashell::hash_string;

fn main() {
    assert_eq!(hash_string("some value", 16), "5149710603511119".to_owned());
}

No runtime deps