Skip to main content

hash

Function hash 

Source
pub fn hash(algo: &[u8], data: &[u8]) -> Option<String>
Expand description

hash($algo, $data) as lowercase hex, for every algorithm of hash_algos(); None for any other name (PHP’s “must be a valid hashing algorithm”). The name is case-insensitive.