Function actix_http::ws::hash_key
source ยท pub fn hash_key(key: &[u8]) -> [u8; 28]
Available on crate feature
ws
only.Expand description
Hashes the Sec-WebSocket-Key
header according to the WebSocket spec.
Result is a Base64 encoded byte array. base64(sha1(input))
is always 28 bytes.