Skip to main content

base64_sha256_hash

Function base64_sha256_hash 

Source
pub fn base64_sha256_hash(bytes: &[u8]) -> String
Expand description

Compute the sha256 hash of the given bytes and convert it to unpadded URL-safe base64.

This matches the format of event IDs since room version 4, and of room IDs since room version 12.