pub fn b64sha256(bytes: &[u8]) -> StringExpand description
Computes the SHA-256 hash of the input, and encodes the result in Base64. ‘/’ characters are replaced by ‘+’.
§Example
let bytes: &[u8] = "Hello, World!".as_bytes();
let hash: String = b64sha256(bytes);
assert!(hash=="3+1gIbsr1bCvZ2KQgJ7DpTGR3YHH9wpLKGiKNiGCmG8=")