public static String decrypt( final String text, final String password, final byte[] salt, final byte[] iv) { final byte[] encryptedData = CryptoHelper.base64Decode(text); final byte[] data = AES.decrypt( encryptedData, password, salt, iv, AES.KEY_SIZE_DEFAULT, AES.ITERATION_COUNT_DEFAULT); return CryptoHelper.getString(data); }
public String decrypt(final String text) { final byte[] encryptedData = CryptoHelper.base64Decode(text); final byte[] data = decrypt(encryptedData); return CryptoHelper.getString(data); }