code: def _compute_handshake(self):
          
          return hashlib.sha1(to_utf8(self.stream_id)+to_utf8(self.secret)).hexdigest()
docs: Compute the authentication handshake value.
  
          :return: the computed hash value.
          :returntype: `str`