Commit ca320b61 by 墨竹

feat:加密修改

parent 13af41f4
......@@ -40,6 +40,7 @@ public class JwtUtil {
* @return
*/
public static String genToken(Map<String, String> claims) {
claims.put("requestTime", String.valueOf(System.currentTimeMillis()));
//使用HMAC256进行加密
Algorithm algorithm = Algorithm.HMAC256(SECRET_KEY);
//创建jwt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment