Premium Hands-on labbeginnerblue teamAWS
Encrypt and Decrypt Data with KMS and Data Keys
In this lab, we'll get hands-on experience using a KMS Customer Managed Key (CMK) and symmetric encryption to encrypt and decrypt data. We'll learn how to perform these functions with the AWS CLI and the AWS Encryption SDK and how to manage data keys for data larger than 4096 bytes.
- 18 guided tasks
- Terminal in the browser

Scenario
In this lab, we'll get hands-on experience using a KMS Customer Managed Key (CMK) to encrypt and decrypt data. We'll learn how to perform these functions with the AWS CLI and the AWS Encryption SDK and how to manage data keys for data larger than 4096 bytes.
What you will learn
- Explain why a KMS symmetric key can only encrypt data up to 4096 bytes.
- Encrypt and decrypt a small file with a KMS key and the AWS CLI.
- Generate a KMS data key and encrypt a large file with OpenSSL.
- Decrypt a data key with KMS and recover the large file.
- Encrypt and decrypt a file with the AWS Encryption SDK CLI.
Hands-on lab
Encrypt and Decrypt Data with KMS and Data Keys
Included in Cybr Premium.