in resources/code/my-first-enclave/cryptographic-attestation/client.py [0:0]
def encrypt_string(string, alias, kms):
encrypted_string = kms.encrypt(KeyId=f"alias/{alias}", Plaintext=string)
binary_cipher_text = encrypted_string[u"CiphertextBlob"]
base64_cipher_text = base64.b64encode(binary_cipher_text)
print(base64_cipher_text.decode())
print(string[-4:])
return base64_cipher_text.decode()