1. update SQL
This commit is contained in:
2026-02-05 20:26:13 +08:00
parent c822959a24
commit 801ddb0a20
4 changed files with 404 additions and 179 deletions

View File

@@ -10,45 +10,54 @@ import org.springblade.core.tool.utils.*;
public class CryptoKeyGenerator {
public static void main(String[] args) {
String cryptoKey = AesUtil.genAesKey();
String aesKey = AesUtil.genAesKey();
String desKey = DesUtil.genDesKey();
String code = new StringBuilder(Long.toString(13370065231L, 36)).reverse().toString();
System.out.println("=========== code 配置如下 ============");
System.out.println("code: " + code.toUpperCase());
// System.out.println("=========== uncode 配置如下 ============");
// long l = Long.parseLong(code, 36);
// System.out.println("number: " + l);
System.out.println("=========== blade.token.crypto-key 配置如下 ============");
System.out.println("#blade配置\n" +
"blade:\n" +
" token:\n" +
" crypto-key: " + cryptoKey);
System.out.println("=======================================================");
System.out.println(StringPool.EMPTY);
System.out.println("============ blade.key.crypto-key 配置如下 =============");
System.out.println("#blade配置\n" +
"blade:\n" +
" key:\n" +
" enabled: true\n" +
" crypto-key: " + cryptoKey);
System.out.println("=======================================================");
System.out.println(StringPool.EMPTY);
System.out.println("============== blade.api.crypto 配置如下 ===============");
System.out.println("#blade配置\n" +
"blade:\n" +
" api:\n" +
" crypto:\n" +
" enabled: true\n" +
" aes-key: " + aesKey + "\n" +
" des-key: " + desKey);
System.out.println("=======================================================");
System.out.println(StringPool.EMPTY);
System.out.println("============== saber crypto.js 配置如下 ===============");
System.out.println("export default class crypto {\n" +
" static cryptoKey = '" + cryptoKey + "';\n" +
" static aesKey = '" + aesKey + "';\n" +
" static desKey = '" + desKey + "';\n" +
"}");
System.out.println("=======================================================");
// String cryptoKey = AesUtil.genAesKey();
// String aesKey = AesUtil.genAesKey();
// String desKey = DesUtil.genDesKey();
//
// System.out.println("=========== blade.token.crypto-key 配置如下 ============");
// System.out.println("#blade配置\n" +
// "blade:\n" +
// " token:\n" +
// " crypto-key: " + cryptoKey);
// System.out.println("=======================================================");
//
// System.out.println(StringPool.EMPTY);
// System.out.println("============ blade.key.crypto-key 配置如下 =============");
// System.out.println("#blade配置\n" +
// "blade:\n" +
// " key:\n" +
// " enabled: true\n" +
// " crypto-key: " + cryptoKey);
// System.out.println("=======================================================");
//
// System.out.println(StringPool.EMPTY);
// System.out.println("============== blade.api.crypto 配置如下 ===============");
// System.out.println("#blade配置\n" +
// "blade:\n" +
// " api:\n" +
// " crypto:\n" +
// " enabled: true\n" +
// " aes-key: " + aesKey + "\n" +
// " des-key: " + desKey);
// System.out.println("=======================================================");
//
// System.out.println(StringPool.EMPTY);
// System.out.println("============== saber crypto.js 配置如下 ===============");
// System.out.println("export default class crypto {\n" +
// " static cryptoKey = '" + cryptoKey + "';\n" +
// " static aesKey = '" + aesKey + "';\n" +
// " static desKey = '" + desKey + "';\n" +
// "}");
// System.out.println("=======================================================");
}
}