public class SecureStore extends Object
Constructor and Description |
---|
SecureStore() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
b64Decode(String src)
Base64 decoder
|
static String |
b64Encode(byte[] src)
Base64 encoder
|
static byte[] |
desDecode(String key,
byte[] src)
DES decoder
|
static byte[] |
desEncode(String key,
byte[] src)
DES encoder
|
static String |
md5Encode(byte[] src)
MD5 encoder
|
static String |
md5Encode(File file)
MD5 encoder
|
public static byte[] desEncode(String key, byte[] src) throws InvalidKeyException, UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException
public static byte[] desDecode(String key, byte[] src) throws InvalidKeyException, UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException
public static String b64Encode(byte[] src)
public static byte[] b64Decode(String src)
public static String md5Encode(byte[] src) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static String md5Encode(File file) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmException
IOException
Copyright © 2015. All Rights Reserved.