pub fn get_hash(
    algorithm: &str,
    data: &[u8]
) -> Result<CryptoString, EzNaclError>
Expand description

GetHash generates a CryptoString hash of the supplied data. Currently the supported algorithms are BLAKE2B-256, BLAKE2B-512, K12-256, BLAKE3-256, and SHA-256.