xieb
2024-02-21 a2e5aea180e13b868edd3eac3318042f87c10141
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("=======================================================");
    }
 
}