#NEWLINE# def decrypt( keyhex ) : #NEWLINE# #INDENT# keybytes = from_hex ( keyhex . strip ( ) ) #NEWLINE# secretbox = nacl . secret . SecretBox ( keybytes ) #NEWLINE# cipherhex = sys . stdin . read ( ) #NEWLINE# cipherbytes = from_hex ( cipherhex . strip ( ) ) #NEWLINE# plainbytes = secretbox . decrypt ( cipherbytes ) #NEWLINE# write_to_stdout ( cipherhex )