(secWebSocketKey string)
| 370 | var keyGUID = []byte("258EAFA5-E914-47DA-95CA-C5AB0DC85B11") |
| 371 | |
| 372 | func secWebSocketAccept(secWebSocketKey string) string { |
| 373 | h := sha1.New() |
| 374 | h.Write([]byte(secWebSocketKey)) |
| 375 | h.Write(keyGUID) |
| 376 | |
| 377 | return base64.StdEncoding.EncodeToString(h.Sum(nil)) |
| 378 | } |
no test coverage detected
searching dependent graphs…