@Deprecated public class TeaUtil extends Object
| Constructor and Description |
|---|
TeaUtil()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] encryptContent,
int offset,
int[] key,
int times)
Deprecated.
|
static String |
decryptByTea(byte[] secretInfo,
int[] KEY)
Deprecated.
通过TEA算法解密信息
|
static String |
decryptForYunpianV2(String msg,
String secret)
Deprecated.
|
static byte[] |
encrypt(byte[] content,
int offset,
int[] key,
int times)
Deprecated.
|
static byte[] |
encryptByTea(String info,
int[] key)
Deprecated.
通过TEA算法加密信息
|
static String |
encryptForYunpianV2(String info,
String secret)
Deprecated.
|
static String |
getApiSecret(String secret)
Deprecated.
|
static int[] |
getKeyByApikey(String apikey)
Deprecated.
|
public static byte[] encrypt(byte[] content,
int offset,
int[] key,
int times)
public static byte[] decrypt(byte[] encryptContent,
int offset,
int[] key,
int times)
public static byte[] encryptByTea(String info, int[] key) throws UnsupportedEncodingException
info - key - UnsupportedEncodingExceptionpublic static String encryptForYunpianV2(String info, String secret) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String decryptForYunpianV2(String msg, String secret) throws IOException
IOExceptionpublic static String decryptByTea(byte[] secretInfo, int[] KEY) throws UnsupportedEncodingException
secretInfo - KEY - UnsupportedEncodingExceptionpublic static int[] getKeyByApikey(String apikey)
Copyright © 2017. All rights reserved.