def compute_accept(key):

    accept_binary = util.sha1_hash(
        key + common.WEBSOCKET_ACCEPT_UUID).digest()
    accept = base64.b64encode(accept_binary)

    return (accept, accept_binary)
Computes value for the Sec-WebSocket-Accept header from value of the
dataset/ETHPy150Open google/pywebsocket/mod_pywebsocket/handshake/hybi.py/compute_accept