def encrypt_and_encode(data, key):
 return base64.urlsafe_b64encode(aes_encrypt(data, key))

def encrypt_and_encode ( data , key ) : return base64 . urlsafe_b64encode ( aes_encrypt ( data , key ) )
encrypts and endcodes data using key .