|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectcom.baidu.sapi2.DeviceCrypto
public class DeviceCrypto
构造方法摘要 | |
---|---|
DeviceCrypto()
|
方法摘要 | |
---|---|
static String |
AES128Decrypt(String content,
String secretKey)
decrypt the given content with the secretKey through the AES-128 algorithm |
static String |
AES128Encrypt(String content,
String secretKey)
encrypt the given content with the secretKey through the AES-128 algorithm |
static String |
encryptDeviceId(String deviceId)
encrypt the device_id with secretKey |
static String |
getHexString(byte[] b)
Convert byte[] to String |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public DeviceCrypto()
方法详细信息 |
---|
public static String getHexString(byte[] b)
b
- byte[] source
public static String encryptDeviceId(String deviceId)
deviceId
-
public static String AES128Encrypt(String content, String secretKey)
content
- the plain content wants to encrypt,the content encoding
must be UTF-8secretKey
- the secret key ,the secretKey encoding must be UTF-8
public static String AES128Decrypt(String content, String secretKey)
content
- the plain content wants to encrypt,the content encoding
must be UTF-8secretKey
- the secret key ,the secretKey encoding must be UTF-8
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |