def make_accept(key):
 guid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
 return sha1(('%s%s' % (key, guid))).digest().encode('base64').strip()

def make_accept ( key ) : guid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11' return sha1 ( ( '%s%s' % ( key , guid ) ) ) . digest ( ) . encode ( 'base64' ) . strip ( )
create an "accept" response for a given key .