pub fn generate<T: AsRef<[u8]>>(
context: &Context,
bytes: T,
) -> Result<String, Error>Expand description
Generate kana hash from a slice of bytes with this digest.
ยงExample
To generate a hash with the default digest from a string
generate(&Default::default(), "Hello world!").expect("Failed to generate hash string");