新版仿ok交易所-后端
1
zj
2025-08-18 f937cb0eacf1d78d26a011ac04ee238879e5d967
trading-order-security-common/src/main/java/com/yami/trading/security/common/util/LocalKeyStorageAESUtil.java
@@ -27,8 +27,8 @@
    private static final int ITERATIONS = 65536;
    // 安全配置 - 生产环境中应从外部配置读取
    private static final Path KEY_FILE = Paths.get("D:/aes/aes_key.dat");
    private static final String FILE = "D:/aes/";
    private static final Path KEY_FILE = Paths.get("/www/aes/aes_key.dat");
    private static final String FILE = "/www/aes/";
    private static final String FILENAME = "_address.dat";
    /**
@@ -48,8 +48,8 @@
                return Result.failed("密钥文件丢失,请联系管理员");
            }
//            //重置密钥   客户更新完密码之后要重新打包提交
//            reset(password);
            //重置密钥   客户更新完密码之后要重新打包提交
            reset(password);
            // 2. 加载现有密钥材料
            KeyMaterial existingKey = loadKeyMaterial();
@@ -283,12 +283,13 @@
           String USDT_ERC20 = "usdt_erc20";
           String ETH = "eth";
           String BTC = "btc";
           String USDC_TRC20 = "usdc_trc20";
           String USDC_ERC20 = "usdc_erc20";
//           String USDC_TRC20 = "usdc_trc20";
//           String USDC_ERC20 = "usdc_erc20";
           String USDC_ERC20 = "usdc_erc20(1)";
           // 加密并保存
//        encryptAndStore(password, "1111111111", USDT_TRC20);
//        encryptAndStore(password,"222222222",USDT_ERC20);
        encryptAndStore(password,"3333333333",ETH);
        encryptAndStore(password,"3333333333",USDC_ERC20);
//        encryptAndStore(password,"我是BTC",BTC);
//        encryptAndStore(password,"44444444444444",USDC_TRC20);
//        encryptAndStore(password,"55555555555555",USDC_ERC20);