JWT

JSON Web Tokens

https://jwt.io/

https://en.wikipedia.org/wiki/JSON_Web_Token#Structure

HMACSHA256

https://en.wikipedia.org/wiki/HMAC

keyed-hash message authentication code or hash-based message authentication code

密钥哈希消息认证码或基于哈希的消息认证码


https://www.freeformatter.com/hmac-generator.html

http://convertstring.com/Hash/SHA256


https://security.stackexchange.com/questions/79577/whats-the-difference-between-hmac-sha256key-data-and-sha256key-data

HMAC-SHA256(key, data) & SHA256(key + data)

https://stackoverflow.com/questions/11415055/how-to-use-hmac-sha256

Javascript HMAC SHA256

https://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-languages/


<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac-sha256.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/enc-base64.min.js"></script> <script>
var hash = CryptoJS.HmacSHA256("Message", "secret");
var hashInBase64 = CryptoJS.enc.Base64.stringify(hash);
document.write(hashInBase64);
</script>


最新文章

  1. [XAF] How to hide individual navigation items and groups for certain users
  2. windows下安装使用Composer记录
  3. js实现页面的自动读秒跳转
  4. MySQL基础 - mysql命令行客户端
  5. Linux安装Weblogic9.2
  6. 正式学习 React(三)番外篇 reactjs性能优化之shouldComponentUpdate
  7. isHiden和isVisible的区别(isVisible更可靠)
  8. JAVA随笔篇一(Timer源代码分析和scheduleAtFixedRate的使用)
  9. java jdbc操作数据库通用代码
  10. jmeter的几种参数化使用方法
  11. 使用Three.js挖空安装门来解决重叠闪烁的问题
  12. js跨域交互之jsonp - 看完就能让你了解jsonp原理 (原)
  13. 深度解读 AlphaGo 算法原理
  14. 串口.Qt532测试(同步)
  15. freeswitch笔记
  16. HDFS高级功能
  17. Python 学习第二章
  18. VPC见解
  19. pycharm pro版本激活
  20. list_01

热门文章

  1. bzoj 1034: [ZJOI2008]泡泡堂BNB【贪心】
  2. BZOJ4543/BZOJ3522 [POI2014]Hotel加强版(长链剖分)
  3. eccharts-gl 3D立体柱状图
  4. 【杂文】5亿大质数表(5e8)
  5. hdu 模拟 贪心 4550
  6. java dom4j xml生成,解析
  7. 如何在Ubuntu上安装Wine 2.6
  8. 贪心 Codeforces Round #135 (Div. 2) C. Color Stripe
  9. 题解报告:hdu 5695 Gym Class(拓扑排序)
  10. ACM_校庆素数