卡密解密规范
卡券下单接口和查询接口中的 goods_number
、goods_password
、goods_link
为AES加密数据,需解密为明文:
{
"code": 7000,
"message": "请求通过",
"data":[
{
"order_no": "SELL1564466171215298064",
"user_order_no": "uxCXdkxDIR18kwmpBUZNQ6KC8Ywpi9",
"state": "SUCCESS",
"price": 3.735,
"goods_no": "20010001",
"goods_name": "一寸阳光5元官方优惠券",
"goods_type": "PICTURE",
"goods_link": "1dM/tmE36C00Hzbj1TF2fFuAARbWXmZkwx3/alvFBjnavgSFYxyn3FQta1A4OM8s8hNrLJiZdGUcDW+xiooSwGdo8R4A+AFpbOBSAgha+IBI4+NPlEH1bt8OzHgVwSqsaByawwXw5380UmdiHQAkt4/lrAeA4pqwZfSLtNcBFkrxpw5TxIEk3ImgovTorw59hcPtnM/PHiAotbGz5irwYnxQctQ5vC9PxgWtCOa1Omk=",
"complete_time": 1564466171000,
"create_time": 1564466171000,
"effective_time": 1564588800000
}
]
}
Java版
AES解密如下:
参数列表:参数一为需要解密的密文,参数二为解密key,参数三为解密偏移量iv。具体方法请参考SDK下载
String dataText = AesUtil.decrypt(密文, 解密key, 偏移量iv);
C#版
AES解密如下:
参数列表:参数一为需要解密的密文,参数二为解密key,参数三为解密偏移量iv。具体方法请参考SDK下载
string dataText =AES.AesDecrypt(密文, 解密key, 偏移量iv);