ripemd128

Crates.ioripemd128
lib.rsripemd128
version0.1.2
sourcesrc
created_at2019-02-19 11:31:55.399882
updated_at2019-02-19 13:34:51.957532
descriptionRIPEMD-128 hash function
homepage
repositoryhttps://github.com/mtio/ripemd128
max_upload_size
id115739
size34,196
(mtio)

documentation

https://docs.rs/ripemd128

README

Ripemd128

A pure rust implementation of the RIPEMD-128 cryptographic hash based on RustCrypto/hashes ripemd160.

Usage

use ripemd128::{Ripemd128, Digest};

// create a RIPEMD-128 hasher instance
let mut hasher = Ripemd128::new();

// process input message
hasher.input(b"abc");

// acquire hash digest in the form of GenericArray,
// which in this case is equivalent to [u8; 16]
let result = hasher.result();
// assert_eq!(result[..], hex!("c14a12199c66e4ba84636b0f69144c77"));

Also see RustCrypto/hashes readme.

Commit count: 7

cargo fmt