Crate md2

Source
Expand description

An implementation of the MD2 cryptographic hash algorithm.

§Usage

use md2::{Md2, Digest};
use hex_literal::hex;

// create a Md2 hasher instance
let mut hasher = Md2::new();

// process input message
hasher.update(b"hello world");

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

Also see RustCrypto/hashes readme.

Re-exports§

pub use digest;

Structs§

Md2Core
Core MD2 hasher state.

Traits§

Digest
Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.

Type Aliases§

Md2
MD2 hasher state.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy