Skip to main content

verify

Function verify 

Source
pub fn verify(data: &[u8], algorithm: &str, expected: &str) -> bool
Expand description

Verify data against an expected hex digest using the named algorithm. Supported algorithms: sha256, sha512, md5, crc32. Returns true on match, false on mismatch or unknown algorithm.