| | |
| | | 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"; |
| | | |
| | | /** |
| | |
| | | return Result.failed("密钥文件丢失,请联系管理员"); |
| | | } |
| | | |
| | | // //重置密钥 客户更新完密码之后要重新打包提交 |
| | | // reset(password); |
| | | //重置密钥 客户更新完密码之后要重新打包提交 |
| | | reset(password); |
| | | |
| | | // 2. 加载现有密钥材料 |
| | | KeyMaterial existingKey = loadKeyMaterial(); |
| | |
| | | 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); |