Changes between Version 3 and Version 4 of app2.2.0/sign
- Timestamp:
- 10/27/2015 11:38:39 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
app2.2.0/sign
v3 v4 11 11 4. 用post方式将json字符串作为参数,请求对应的接口。 12 12 }}} 13 14 15 == 接收到数据后,对数据签名进行验证 == 16 17 {{{#!java 18 1. 接收到到请求或相应后将数据转为utf-8的字符串(命名为str)。 19 2. MD5(str + secretKey)得到本地的签名(命名为signL)。 20 3. 取出请求头或响应头中的Sign(命名为sign)。 21 4. 对比signL和sign是否一致,一致则说明数据无问题,不一致数据则有可能被篡改。 22 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)