Skills covered: 2.2.1, 2.2.3, 2.2.4, 2.2.7
kms = boto3.client('kms')
encrypted = kms.encrypt(KeyId='alias/my-key', Plaintext=b'secret data')
decrypted = kms.decrypt(CiphertextBlob=encrypted['CiphertextBlob'])
data_key = kms.generate_data_key(KeyId='alias/my-key', KeySpec='AES_256')
# Encrypt data locally with plaintext key
# Store encrypted_key + encrypted_data
# Delete plaintext key from memory