解密
<p><span style="font-size:18px"><strong>解密:Decrypt</strong></span></p>
<p><span style="font-size:14px"><strong>描述:</strong></span></p>
<p>对密文ciphertextBlob进行解密。密文是通过调用以下API接口产生的:</p>
<ul>
<li>GenerateDataKey</li>
<li>Encrypt</li>
</ul>
<p><span style="font-size:14px"><strong>请求参数:</strong></span></p>
<table border="1" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td style="background-color:#ededed"><strong>名称</strong></td>
<td style="background-color:#ededed"><strong>类型</strong></td>
<td style="background-color:#ededed"><strong>是否必需</strong></td>
<td style="background-color:#ededed"><strong>描述</strong></td>
</tr>
<tr>
<td>cipherTextBlob</td>
<td>String</td>
<td>是</td>
<td>待解密的密文</td>
</tr>
<tr>
<td>encryptionContext</td>
<td>String</td>
<td>否</td>
<td>附加盐值,如果指定了该参数,则在调用Decrypt 时需要提供同样的参数</td>
</tr>
</tbody>
</table>
<p><span style="font-size:14px"><strong>返回参数:</strong></span></p>
<table border="1" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td style="background-color:#ededed"><strong>名称</strong></td>
<td style="background-color:#ededed"><strong>类型</strong></td>
<td style="background-color:#ededed"><strong>描述</strong></td>
</tr>
<tr>
<td>code</td>
<td>String</td>
<td>返回码,成功返回"SUCCESS"</td>
</tr>
<tr>
<td>keyId</td>
<td>String</td>
<td>密钥的全局唯一标识符</td>
</tr>
<tr>
<td>plainText</td>
<td>String</td>
<td>解密后的明文</td>
</tr>
<tr>
<td>requestId</td>
<td>String</td>
<td>当前请求Id</td>
</tr>
</tbody>
</table>
<p><span style="font-size:14px"><strong>请求示例:</strong></span></p>
<pre>
<code>https://kms-cn-shanghai.ocftcloud.com/?action=Decrypt
&cipherTextBlob=<your cipher text blob>
&encryptionContext=< encryption context >
&<公共请求参数></code></pre>
<p><span style="font-size:14px"><strong>返回示例:</strong></span></p>
<pre>
<code>{
"code": "SUCCESS",
"plainText": "your plain text",
"keyId": "your key id",
"requestId": "dbfa6ea7-3984-4573-9623-cbe5bb1264c5"
}</code></pre>
<p> </p>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!