public static byte[] decrypt(final byte[] data, final String password) { return AES.decrypt( data, password, AES.getSimpleSalt(), AES.getSimpleIV(), AES.KEY_SIZE_DEFAULT, AES.ITERATION_COUNT_DEFAULT); }
public static byte[] encrypt(final byte[] data) { return AES.encrypt( data, AES.getSimplePassword(), AES.getSimpleSalt(), AES.getSimpleIV(), AES.KEY_SIZE_DEFAULT, AES.ITERATION_COUNT_DEFAULT); }
public static String encrypt(final String text, final String password, final byte[] salt) { return AES.encrypt(text, password, salt, AES.getSimpleIV()); }
public static String encrypt(final String text, final String password) { return AES.encrypt(text, password, AES.getSimpleSalt(), AES.getSimpleIV()); }
public static String decrypt(final String text) { return AES.decrypt(text, AES.getSimplePassword(), AES.getSimpleSalt(), AES.getSimpleIV()); }