Module cryptoxide::digest [−][src]
Expand description
Cryptographic Hash abstraction definition
use self::cryptoxide::digest::Digest;
use self::cryptoxide::sha2::Sha512;
// create a Sha512 object
let mut hasher = Sha512::new();
// write input message
hasher.input_str("hello world");
let hex = hasher.result_str();
Traits
The Digest trait specifies an interface common to digest functions, such as SHA-1 and the SHA-2 family of digest functions.