Encrypt
GET /?Action=Encrypt
Description
Encrypts plaintext into ciphertext using a Customer Master Key (CMK).
Body parameter
Required: false
Name: EncryptRequest
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
EncryptionContext |
A context for the encryption, in the form of one or more |
false |
object |
||
KeyId |
The ID of the CMK. |
true |
string |
||
Plaintext |
The plaintext you want to encrypt, encoded in base64. |
true |
string |
Responses
HTTP Code 200
HTTP Code | Description | Schema |
---|---|---|
200 |
EncryptResult |
Response 200
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
CiphertextBlob |
The encrypted plaintext. |
false |
string |
||
KeyId |
The ID of the CMK. |
false |
string |