def encrypt(plaintext): return base64.b64encode(kms.encrypt( KeyId=KMS_KEY_ID, Plaintext=plaintext)['CiphertextBlob'])