edit-icon download-icon

Decrypt

Last Updated: Apr 02, 2018

Description

Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted by using any of the following operations.

Request parameters

Name Type Required Description
CiphertextBlob String Yes Ciphertext to be decrypted.
EncryptionContext String No The encryption context. If this was specified in the Encrypt operation, it must be specified here or the decryption operation will fail. For more information, see EncryptionContext.

Response parameters

Name Type Description
KeyId string Globally unique identifier of CMK.
Plaintext string Decrypted plaintext data.

Examples

Request example

  1. https://kms.cn-hangzhou.aliyuncs.com/?Action=Decrypt
  2. &CiphertextBlob=<your ciphertextblob>
  3. &EncryptionContext={"Example":"Example"}
  4. &<Other public parameters>

Response example

JSON format

  1. //json response
  2. {
  3. "KeyId": "202b9877-5a25-46e3-a763-e20791b52868"
  4. "Plaintext": "Plaintext"
  5. "RequestId": "207596a2-36d3-4840-b1bd-f87044699bd7"
  6. }

XML format

  1. //xml response
  2. <KMS>
  3. <KeyId>202b9877-5a25-46e3-a763-e20791b52868</KeyId>
  4. <Plaintext>Plaintext</Plaintext>
  5. <RequestId>4bd560a1-729e-45f1-a3d9-b2a33d61046b</RequestId>
  6. </KMS>
Thank you! We've received your feedback.