hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
Public 成员函数 | 静态 Public 成员函数 | 静态 Public 属性 | 所有成员列表
com.hyphenate.util.CryptoUtils类 参考

Public 成员函数

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
 

静态 Public 成员函数

static String getHex (byte[] raw)
 

静态 Public 属性

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

参数
message
返回
异常
Exception

该类的文档由以下文件生成: