Module dup_crypto::hashs[][src]

Expand description

Provide wrappers for cryptographic hashs

Summary

Compute sha256 hash

use dup_crypto::hashs::Hash;

let hash: Hash = Hash::compute(b"datas");

assert_eq!(
    "958D41C80EF75834EFFC9CBE2E8AEE11AEDE28ADA596E876B8261EDF53266B40",
    &hash.to_hex(),
);

Structs

Hash

A hash wrapper.

Hash64

A hash wrapper.