#NEWLINE# def encrypt_fetch_response( symkey , fetch_token , msgC , nonce = None ) : #NEWLINE# #INDENT# assert ( len ( msg ) == 32 ) #NEWLINE# msg = ( ( 'fetch:' + fetch_token ) + msgC ) #NEWLINE# nonce = ( nonce or os . urandom ( 24 ) ) #NEWLINE# return SecretBox ( symkey ) . encrypt ( msg , nonce )