GET api/EncryptKey/GetEncryptKey
客户端从服务器取得一个32位秘钥Key
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
data | data is JSON (此参数可以不传入) data { string Username, //用户名 } |
Define this parameter in the request URI. |
Response Information
返回一个JSON秘钥Key JSON{ string Key (秘钥Key) }
Response body formats
application/json, text/json
Sample:
{ "Key": "sample string 1" }
application/xml, text/xml
Sample:
<EncryptKeyModal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <Key>sample string 1</Key> </EncryptKeyModal>