#crypto #hash #siphash

siphasher

SipHash functions from rust-core < 1.13

8 releases

0.2.3 Jul 30, 2018
0.2.2 Mar 23, 2017
0.2.1 Jan 24, 2017
0.2.0 Dec 5, 2016
0.1.2 Oct 26, 2016

#1 in Cryptography

Download history 16489/week @ 2018-05-08 21439/week @ 2018-05-15 19731/week @ 2018-05-22 20181/week @ 2018-05-29 22075/week @ 2018-06-05 21221/week @ 2018-06-12 19677/week @ 2018-06-19 22334/week @ 2018-06-26 22807/week @ 2018-07-03 20792/week @ 2018-07-10 23389/week @ 2018-07-17 23571/week @ 2018-07-24 21623/week @ 2018-07-31

91,775 downloads per month

SipHash implementation for Rust

SipHash was recently removed from rust-core.

This crate brings SipHasher, SipHasher13 and SipHash24 back. It is based on the original implementation from rust-core and exposes the same API.

In addition, it can return 128-bit tags.

The sip module implements the standard 64-bit mode, whereas the sip128 module implements the 128-bit mode.

Usage

In Cargo.toml:

[dependencies]
siphasher = "~0.2"

64-bit mode:

extern crate siphasher;

use siphasher::sip::{SipHasher, SipHasher13, SipHasher24};

128-bit mode:

use siphasher::sip128::{Hasher128, Siphasher, SipHasher13, SipHasher24};

API documentation

MIT/Apache-2.0 license
  • No runtime deps

Reverse deps