把sign各个加密字段放header中,不放在url中
来源:6-6 API接口数据安全解决方案之sign有效时间处理

蓝色西西
2018-11-13
然后排序header各个字段,MD5加密。可是header中有很多乱七八糟的东西,怎么过滤掉,不参与加密:connection:keep-alive upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8 accept-encoding:gzip, deflate, br accept-language:zh-CN,zh;q=0.9,en;q=0.8
写回答
1回答
-
您好。用header你想要的字段。比如sign 等,其他字段不需要。
022018-11-13
相似问题