http://www.iocoder.cn/Fight/understanding-jwt/?self
- base64
{
"typ": "JWT",
"alg": "HS256"
}
- base64
- 转字符再加 base64
{
"iss": "John Wu JWT",
"iat": 1441593502,
"exp": 1441594722,
"aud": "www.example.com",
"sub": "jrocket@example.com",
"from_user": "B",
"target_user": "A"
}
- 转字符再加 base64
-
对 1+2的结果进行 HS256 加密,并且有秘钥
网友评论