pub fn hash_key(key: &[u8]) -> [u8; 28]
Hashes the Sec-WebSocket-Key header according to the WebSocket spec.
Sec-WebSocket-Key
Result is a Base64 encoded byte array. base64(sha1(input)) is always 28 bytes.
base64(sha1(input))