zrj
2024-11-09 30fc3da6e5895ef3eae52dedd76ea4f2708d5596
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.springblade.test;
 
import org.springblade.core.tool.utils.RandomType;
import org.springblade.core.tool.utils.StringUtil;
 
/**
 * signKey生成器
 *
 * @author Chill
 */
public class SignKeyGenerator {
 
    public static void main(String[] args) {
        System.out.println("=======================================================");
        System.out.println("====== blade.token.sign-key 的值从中挑选一个便可 =========");
        System.out.println("=======================================================");
        for (int i = 0; i < 10; i++) {
            String signKey = StringUtil.random(32, RandomType.ALL);
            System.out.println("BladeX SignKey:[" + signKey + "] ");
        }
        System.out.println("=======================================================");
    }
 
}