JWT

2020-07-28  本文已影响0人  zjkdifvpwlkqumn

http://www.iocoder.cn/Fight/understanding-jwt/?self

    • base64
      {
      "typ": "JWT",
      "alg": "HS256"
      }
    • 转字符再加 base64
      {
      "iss": "John Wu JWT",
      "iat": 1441593502,
      "exp": 1441594722,
      "aud": "www.example.com",
      "sub": "jrocket@example.com",
      "from_user": "B",
      "target_user": "A"
      }
  1. 对 1+2的结果进行 HS256 加密,并且有秘钥

上一篇 下一篇

猜你喜欢

热点阅读