Function actix_http::ws::hash_key
source · pub fn hash_key(key: &[u8]) -> [u8; 28]
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.