public final class SecurityUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ITERATION_COUNT |
static byte[] |
DEFAULT_SALT |
static String |
PBE_WITH_MD5_AND_DES |
Modifier and Type | Method and Description |
---|---|
static byte[] |
encrypt(byte[] data,
char[] password,
String algorithmName,
byte[] salt,
int count) |
public static final String PBE_WITH_MD5_AND_DES
public static final byte[] DEFAULT_SALT
public static final int DEFAULT_ITERATION_COUNT
public static byte[] encrypt(byte[] data, char[] password, String algorithmName, byte[] salt, int count) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.