Xiamaer's recent timeline updates
Xiamaer

Xiamaer

V2EX member #395625, joined on 2019-03-27 10:16:12 +08:00
Xiamaer's recent replies
Apr 23, 2019
Replied to a topic by Xiamaer 信息安全 jwt.io 上创建 jwt 为什么这么快?
找到原因了,java 刚启动的时候代码执行效率较低,cpu 占用高,我循环创建了一下发现还是很快的,可以到毫秒级。
Apr 22, 2019
Replied to a topic by Xiamaer 信息安全 jwt.io 上创建 jwt 为什么这么快?
@quadrapop 是用的 java 吗?用的 jjwt 还是 java-jwt
Apr 22, 2019
Replied to a topic by Xiamaer 信息安全 jwt.io 上创建 jwt 为什么这么快?
@misaka19000 没怎么用过这个,还请大佬指点
Apr 22, 2019
Replied to a topic by Xiamaer 信息安全 jwt.io 上创建 jwt 为什么这么快?
System.out.println(System.currentTimeMillis());
String jws = Jwts.builder() // (1)

.setSubject("Bob") // (2)

.signWith(SignatureAlgorithm.HS256,"mykey") // (3)

.compact(); // (4)
System.out.println(System.currentTimeMillis());
System.out.println(jws);

@gam2046 @whileFalse @raiz 我就只用了 api 生成 jwt,代码就这几句自己写的,别的啥都没有
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5776 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 96821589 · 25ms · UTC 01:42 · PVG 09:42 · LAX 18:42 · JFK 21:42
♥ Do have faith in what you're doing.