全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

加密

最近更新时间:2018-10-12 17:44:24

Encrypt( 加密)

使用客户主密钥(CMK)将明文加密成密文

Request Parameters(请求参数)

KeyId

  • 客户主KEY的ID
  • 类型:String
  • 是否可缺省: 否

Plaintext

  • 明文数据,最多长度不超过4096
  • 类型:Base64-encoded binary data object
  • 是否可缺省: 否

Response Elements(返回值)

RequestId

  • 请求ID
  • 类型: String

CiphertextBlob

  • 密文数据
  • 类型:Base64-encoded binary data object
  • 是否可缺省: 否

KeyId

  • 客户主KEY的ID
  • 类型:String
  • 是否可缺省: 否

Examples(举例)

Sample Request(请求)

http://kkms.api.ksyun.com?Action=Encrypt&Version=2016-03-04
&KeyId=aj0p6hf4-mcd3-pej3-v9i9-rq85h4a2dojs
&Plaintext=aaaa

Sample Response(返回)

<response>
    <RequestId>dff2ff24-555f-4209-aa2a-c19b0f92e551</RequestId>
    <CiphertextBlob>/KhaumND4qw/V/LAfk04aQ==</CiphertextBlob>
    <KeyId>aj0p6hf4-mcd3-pej3-v9i9-rq85h4a2dojs</KeyId>
</response>
文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈