解密

<p class="shortdesc"></p> <section class="section" id="Decrypt__section_gtt_p2j_mlb"><h2 class="doc-tairway">解密:Decrypt</h2> <p class="p"><strong class="ph b">描述</strong></p> <p class="p">对密文ciphertextBlob进行解密。密文是通过调用以下API接口产生的:</p> <ul class="ul" id="Decrypt__ul_zsr_q2j_mlb"> <li class="li">GenerateDataKey</li> <li class="li">Encrypt</li> </ul> <p class="p"><strong class="ph b">请求参数</strong></p> <table class="table" id="Decrypt__table_atr_q2j_mlb"><caption></caption><colgroup><col><col><col><col></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="Decrypt__table_atr_q2j_mlb__entry__1"> <p class="p">名称</p> </th> <th class="entry" id="Decrypt__table_atr_q2j_mlb__entry__2"> <p class="p">类型</p> </th> <th class="entry" id="Decrypt__table_atr_q2j_mlb__entry__3"> <p class="p">是否必需</p> </th> <th class="entry" id="Decrypt__table_atr_q2j_mlb__entry__4"> <p class="p">描述</p> </th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="Decrypt__table_atr_q2j_mlb__entry__1 "> <p class="p">cipherTextBlob</p> </td> <td class="entry" headers="Decrypt__table_atr_q2j_mlb__entry__2 "> <p class="p">String</p> </td> <td class="entry" headers="Decrypt__table_atr_q2j_mlb__entry__3 "> <p class="p">是</p> </td> <td class="entry" headers="Decrypt__table_atr_q2j_mlb__entry__4 "> <p class="p">待解密的密文</p> </td> </tr> <tr class="row"> <td class="entry" headers="Decrypt__table_atr_q2j_mlb__entry__1 "> <p class="p">encryptionContext</p> </td> <td class="entry" headers="Decrypt__table_atr_q2j_mlb__entry__2 "> <p class="p">String</p> </td> <td class="entry" headers="Decrypt__table_atr_q2j_mlb__entry__3 "> <p class="p">否</p> </td> <td class="entry" headers="Decrypt__table_atr_q2j_mlb__entry__4 "> <p class="p">附加盐值,如果指定了该参数,则在调用Decrypt 时需要提供同样的参数</p> </td> </tr> </tbody></table> <p class="p"><strong class="ph b">返回参数</strong></p> <table class="table" id="Decrypt__table_btr_q2j_mlb"><caption></caption><colgroup><col><col><col></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="Decrypt__table_btr_q2j_mlb__entry__1"> <p class="p">名称</p> </th> <th class="entry" id="Decrypt__table_btr_q2j_mlb__entry__2"> <p class="p">类型</p> </th> <th class="entry" id="Decrypt__table_btr_q2j_mlb__entry__3"> <p class="p">描述</p> </th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__1 "> <p class="p">code</p> </td> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__2 "> <p class="p">String</p> </td> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__3 "> <p class="p">返回码,成功返回"SUCCESS"</p> </td> </tr> <tr class="row"> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__1 "> <p class="p">keyId</p> </td> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__2 "> <p class="p">String</p> </td> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__3 "> <p class="p">密钥的全局唯一标识符</p> </td> </tr> <tr class="row"> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__1 "> <p class="p">plainText</p> </td> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__2 "> <p class="p">String</p> </td> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__3 "> <p class="p">解密后的明文</p> </td> </tr> <tr class="row"> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__1 "> <p class="p">requestId</p> </td> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__2 "> <p class="p">String</p> </td> <td class="entry" headers="Decrypt__table_btr_q2j_mlb__entry__3 "> <p class="p">当前请求Id</p> </td> </tr> </tbody></table> <p class="p"><strong class="ph b">请求示例</strong></p> <pre class="pre codeblock"><code>https://kms-cn-shanghai.yun.pingan.com/?action=Decrypt &cipherTextBlob=<your cipher text blob> &encryptionContext=< encryption context > &<公共请求参数></code></pre> <p class="p"><strong class="ph b">返回示例</strong></p> <pre class="pre codeblock"><code>{ "code": "SUCCESS", "plainText": "your plain text", "keyId": "your key id", "requestId": "dbfa6ea7-3984-4573-9623-cbe5bb1264c5" }</code></pre> </section>
以上内容是否解决了您的问题?
请补全提交信息!
咨询·建议

电话咨询

400-151-8800

邮件咨询

cloud@pingan.com

在线客服

工单支持

解决云产品相关技术问题