Skip to main content

hash_data

Function hash_data 

Source
pub fn hash_data(data: &[u8]) -> Vec<u8> 
Expand description

Compute a SHA-256 hash of data. Returns a 32-byte Vec<u8>.