关于认证: html
http://www.javashuo.com/article/p-pmfqmxij-s.html算法
http://www.javashuo.com/article/p-uaetutdz-br.html数据库
http://www.javashuo.com/article/p-sxdngdtd-gd.htmlsegmentfault
https://www.cnblogs.com/xiangkejin/archive/2018/05/08/9011119.html加密
客户端:
构建http请求(包含 access key);
使用请求内容和 使用secret access key计算的签名(signature);
发送请求到服务端。
服务端:
根据发送的access key 查找数据库获得对应的secret-key;
使用一样的算法将请求内容和 secret-key一块儿计算签名(signature),和步骤2同样;
对比用户发送的签名和服务端计算的签名,二者相同则认证经过,不然失败。