This commit is contained in:
@@ -38,7 +38,7 @@ public class JwtUtil {
|
||||
/**
|
||||
* 生成一个安全的随机密钥,并打印其Base64编码字符串(用于配置到配置文件中)
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
public static void BuildSecretKey() {
|
||||
// 生成一个专门用于 HS512 算法的安全随机密钥
|
||||
SecretKey secretKey = Keys.secretKeyFor(SignatureAlgorithm.HS512);
|
||||
|
||||
|
Reference in New Issue
Block a user