in src/main/java/com/aliyuncs/kms/secretsmanager/client/utils/AES256Utils.java [42:52]
public static String decrypt(String mode, byte[] data, byte[] secret, byte[] iv, String salt) throws CacheSecretException {
try {
IvParameterSpec ivSpec = new IvParameterSpec(iv);
Cipher cipher = Cipher.getInstance(modeMap.get(mode));
cipher.init(Cipher.DECRYPT_MODE, getSecretKeySpec(secret, salt), ivSpec);
return new String(cipher.doFinal(data));
} catch (Exception e) {
CommonLogger.getCommonLogger(CacheClientConstant.MODE_NAME).errorf("action:AES256Decrypt", e);
throw new CacheSecretException("AES256 decrypt fail", e);
}
}