數(shù)字簽名(SM9)

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