數(shù)據解密(SM9)

## 接口名稱 數(shù)據解密(SM9)接口 ## 接口描述 對傳入的SM9加密數(shù)據進行(xíng)解密。 ## 接口地址 https://idr.gdsinsing.com/tools/sm9/decrypt ## 調用方式 |方法|數(shù)據類型| |-|-| |[ ] GET|[ ] form-data| |[X] POST|[X] x-www-form-urlencoded| |[ ] PUT|[ ] raw| |[ ] DELETE|| ## 參數(shù)說明(míng) |參數(shù)名|類型|必填|說明(míng)| |-|-|-|-| | cipherText |String|是|密文| |publicKey|String|是|加密公鑰(SM9)| | privateKey |String|是|加密私鑰(SM9)| ## 返回結果 #### 成功返回 ```JavaScript { "success": true, "data": "ABCD", "msg": "", "ex": null } ``` #### 失敗返回 ```JavaScript { "success": false, "data": null, "msg": "解密失敗。", "ex": { "code": "00300015", "reason": "解密失敗。", "resolve": "請(qǐng)檢查加密私鑰,密文。" } } ``` ## 調用例子 ``` JavaScript var settings = { "url": "https://idr.gdsinsing.com/tools/sm9/decrypt", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/x-www-form-urlencoded" }, "data": { "cipherText": "o6+7jo3Z1iNcBxKoAcQxqVhEm7YIGuysrfNd1KxlpGE7E93ja2EIiz2NYpfKyH2G/koFn/d8nSz5l94gQekEYnOxboG482Ecuymr2bUmzEkywA87airk14ToFZVSFFgsg5AEnQ==", "publicKey": "{加密公鑰}", "privateKey": "{加密私鑰}" } }; $.ajax(settings).done(function (response) { console.log(response); }); ```