|
@@ -37,8 +37,8 @@ public class Test {
|
|
|
//RYKFLyB3QzCMPQnnOeCykYDvfe0=
|
|
|
//I42pen9cRNCHYflg/fhmoIDvfe0=
|
|
|
Algorithm algorithm = Algorithm.HMAC256("htyshr");
|
|
|
- Date date = new Date(System.currentTimeMillis() + 1000);
|
|
|
- String token2 = JWTUtil.encrypt("/NP9IOpwTXS3wwhAfDGBF4Dvfe0=,"+System.currentTimeMillis(),"htyshr");
|
|
|
+ Date date = new Date(System.currentTimeMillis() + 10000);
|
|
|
+ String token2 = JWTUtil.encrypt("VfSso6eBS9ynvnYoaDu39YDvfe0=,"+System.currentTimeMillis(),"htyshr");
|
|
|
System.out.println(JWTUtil.decrypt(token2,"htyshr"));
|
|
|
System.out.println(token2);
|
|
|
// String token = JWT.create()
|