阅读467 返回首页    go 微信


Decrypt__API 参考_密钥管理服务-阿里云

解密密文CiphertextBlob,密文可以是以下API生成的

GenerateDataKey

Encrypt

  • 请求格式
    1. CiphertextBlob=blob&EncryptionContext=json //blob为base64编码后的String
  • 请求参数

    • CiphertextBlob
      • 含义 : 待解密的密文
      • 类型 : String
      • 是否必须 : 是
    • EncryptionContext
      • 含义 : key/value对的json字符串,如果在Encrypt或者GenerateDataKey API中指定了该参数,则需要提供在调用Encrypt或者GenerateDataKey API时一样的参数才能解密,参见EncryptionContext说明
      • 类型 : String
      • 是否必须 : 否
  • 请求示例

  1. https://kms.cn-hangzhou.aliyuncs.com/?Action=Decrypt
  2. &CiphertextBlob=<your ciphertextblob>
  3. &EncryptionContext = <json string>
  4. &<其他公共参数>
  • 返回格式
  1. {
  2. "Plaintext": blob, // blob为base64编码后的String
  3. "KeyId": "string",
  4. "RequestId":"string"
  5. }
  • 返回参数
    • KeyId
      • 含义 : key的全局唯一标识符
      • 类型 : String
    • Plaintext
      • 含义 : 解密后的明文
      • 类型 : String
    • RequestId
      • 含义 : 随机的访问Id
      • 类型 : String
  • 返回示例
  1. //json response
  2. {
  3. "KeyId": "KeyId"
  4. "Plaintext": "Plaintext"
  5. "RequestId": "207596a2-36d3-4840-b1bd-f87044699bd7"
  6. }
  7. //xml response
  8. <KMS>
  9. <KeyId>KeyId</KeyId>
  10. <Plaintext>Plaintext</Plaintext>
  11. <RequestId>4bd560a1-729e-45f1-a3d9-b2a33d61046b</RequestId>
  12. </KMS>

最后更新:2016-11-23 17:16:06

  上一篇:go Encrypt__API 参考_密钥管理服务-阿里云
  下一篇:go ListKeys__API 参考_密钥管理服务-阿里云