Encryption

MI encryption method:

illustrate:

1. Configure the data parameter synHour to pull a few hours ago, and calculate the endTime (beginTime is Now)

2. Data paging in the beginTime~endTime time period

Return data source:

code, message, result (there is totalCount in result)

 

Request parameters:

beginTime=-1&endTime=1467881475&partner_id=14&status=1,2,3,4,5,50&start=0&end=20 

 

After AES encryption:

PMFKgdeVkXX/nBy8Vnxof8Kce1zszSkp4Isd7+eCbt/je0u4oJnKUmbjlvlpFxBhdk04cGyVQujwzDeg5UYRsKitAGlUu6TK8UujtaXVw24=

 

sign:

data=getAesEncrypt(req)&partner_id=partnerId×tamp=(System.currentTimeMillis()/1000)signKey

String before MD5 encryption:

data=PMFKgdeVkXX/nBy8Vnxof8Kce1zszSkp4Isd7+eCbt/je0u4oJnKUmbjlvlpFxBhdk04cGyVQujwzDeg5UYRsKitAGlUu6TK8UujtaXVw24=&partner_id=14×tamp=14678814757ec0bbf38ebe7a18966ef472ae02c995

After encryption sign: 9FBE68BEF8B41CB76589D9B2019A8CE1

 

Last request address:

http://1.233.204.161/openapi/shop/orderlist?data=PMFKgdeVkXX/nBy8Vnxof8Kce1zszSkp4Isd7+eCbt/je0u4oJnKUmbjlvlpFxBhdk04cGyVQujwzDeg5UYRsKitAGlUu6TK8UujtaXVw24=&partner_id=14×tamp=1467881475&sign=9fbe68bef8b41cb76589d9b2019a8ce1

 

 

http://1.233.204.161/openapi/shop/orderlist?data=PMFKgdeVkXX%2FnBy8Vnxof8Kce1zszSkp4Isd7%2BeCbt%2Fje0u4oJnKUmbjlvlpFxBhdk04cGyVQujwzDeg5UYRsKitAGlUu6TK8UujtaXVw24%3D&partner_id=14×tamp=1467881475&sign=9fbe68bef8b41cb76589d9b2019a8ce1

 

 

SN encryption method:

key is the secret key

dd.append("strMobile=").append(strMobile).append("&time=").append(time).append("&").append(key);

MD5 encryption:

String checksign = PhoneMD5.MD5(dd.toString());

 

Substitute the sign together with the parameter when passing the parameter, and verify it when receiving

Return data source:

code、result

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326193884&siteId=291194637