java.lang.Object | |
↳ | com.microstrategy.utils.EncryptionUtil |
Utility class for Encryption
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static String | MD5_ALGORITHM | ||||||||||
public static String | SHA1_ALGORITHM |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EncryptionUtil() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static byte[] |
decrypt(String base64EncryptedStringValue, String key)
@return
| ||||||||||
static String |
decryptToString(String base64EncryptedStringValue, String key)
@return
| ||||||||||
static byte[] |
encrypt(String dataToEncrypt, String key)
Encrypts the given data@return
| ||||||||||
static String |
encryptToBase64String(String dataToEncrypt, String key)
Encrypts and returns base64 encoded String@return
| ||||||||||
static String |
printHexBinary(byte[] data)
Converts byte[] to hex String
Copy of javax.xml.bind.DatatypeConverter (Lower case letter though)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
@return
base64EncryptedStringValue | Previously Encrypted base64EncodedString |
---|
NoSuchAlgorithmException | |
NoSuchPaddingException | |
InvalidKeyException | |
IllegalBlockSizeException | |
BadPaddingException | |
IllegalBlockSizeException | |
InvalidKeyException | |
NoSuchAlgorithmException | |
NoSuchPaddingException |
@return
base64EncryptedStringValue | Previously Encrypted base64EncodedString |
---|
NoSuchAlgorithmException | |
NoSuchPaddingException | |
InvalidKeyException | |
IllegalBlockSizeException | |
BadPaddingException | |
IllegalBlockSizeException | |
InvalidKeyException | |
NoSuchAlgorithmException | |
NoSuchPaddingException |
Encrypts the given data@return
NoSuchAlgorithmException | |
NoSuchPaddingException | |
InvalidKeyException | |
IllegalBlockSizeException | |
BadPaddingException | |
IllegalBlockSizeException | |
InvalidKeyException | |
NoSuchAlgorithmException | |
NoSuchPaddingException |
Encrypts and returns base64 encoded String@return
NoSuchAlgorithmException | |
NoSuchPaddingException | |
InvalidKeyException | |
IllegalBlockSizeException | |
BadPaddingException | |
IllegalBlockSizeException | |
InvalidKeyException | |
NoSuchAlgorithmException | |
NoSuchPaddingException |
Converts byte[] to hex String Copy of javax.xml.bind.DatatypeConverter (Lower case letter though)