|
void | init (int algorithm) |
|
void | initDES () |
|
void | initAES () |
|
String | encryptBase64String (String message) throws Exception |
|
String | decryptBase64String (String message) throws Exception |
|
byte[] | encrypt (String message) throws Exception |
|
byte[] | encrypt (byte[] input) throws Exception |
|
byte[] | decrypt (byte[] input) throws Exception |
|
|
static String | getHex (byte[] raw) |
|
|
static final int | ALGORIGHM_DES = 0 |
|
static final int | ALGORIGHM_AES = 1 |
|
String com.hyphenate.util.CryptoUtils.encryptBase64String |
( |
String |
message | ) |
throws Exception |
encrypt the message using 3DES or AES. notice, we need to use base64encoded on the encrypted bytes inorder to add this message to xml stream to send out once received, need to use base64decoded first to get the encrypted bytes the decrypt it and return the plain text
- Parameters
-
- Returns
- Exceptions
-
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/com/hyphenate/util/CryptoUtils.java