public class EncryptorUtil
extends Object
Constructor and Description |
---|
EncryptorUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
decrypt(Key key,
String encryptedString) |
static byte[] |
decryptUnencodedAsBytes(Key key,
byte[] encryptedBytes) |
static Key |
deserializeKey(String base64String) |
static String |
encrypt(Key key,
String plainText) |
static byte[] |
encryptUnencoded(Key key,
byte[] plainBytes) |
static byte[] |
encryptUnencoded(Key key,
String plainText) |
static Key |
generateKey() |
static String |
serializeKey(Key key) |
public static String decrypt(Key key, String encryptedString) throws EncryptorException
EncryptorException
public static byte[] decryptUnencodedAsBytes(Key key, byte[] encryptedBytes) throws EncryptorException
EncryptorException
public static Key deserializeKey(String base64String)
public static String encrypt(Key key, String plainText) throws EncryptorException
EncryptorException
public static byte[] encryptUnencoded(Key key, byte[] plainBytes) throws EncryptorException
EncryptorException
public static byte[] encryptUnencoded(Key key, String plainText) throws EncryptorException
EncryptorException
public static Key generateKey() throws EncryptorException
EncryptorException
public static String serializeKey(Key key)