JwtToken JWT token的格式:header.payload.signature 1、header的格式(算法、token的类型): {"alg": "HS512","typ": "JWT"} 2、payload的格式(用户名、创建时间、生成时间): {"sub":"wu","created":1489079981393,"exp":1489684781} 3、signature的生成算法: HMACSHA512(base64UrlEncode(header) + "." +base64UrlEncode(payload),secret) 编码后的令牌:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ3dSIsImNyZWF0ZWQiOjE0ODkwNzk5ODEzOTMsImV4cCI6MTQ4OTY4NDc4MX0.Q-Fcp7P1N9kDlu_xmQPoc2oc9V5fMOFpHokH7dtfzR4