public class Des3SSL2 extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
createRandomStr(int s) |
static String |
decode(String encryptText,
String secretKey) |
static String[] |
decodeDC(String secMobileNo,
String secretKey)
对手机号码进行解密
|
static String[] |
decodeMobileNo(String sec)
从长字符串或获取手机号码和时间戳
|
static String |
encode(String plainText,
String secretKey)
3DES加密
|
static String |
encodeDC(String mobileNo,
String secretKey)
加密手机号码
|
static String |
encodeMobileNo(String mobileNo)
将手机号码切片藏在长字符串中
|
public static String encodeDC(String mobileNo, String secretKey)
mobileNo - 手机号码 必须是11位 否则返回为空secretKey - 活动密钥public static String[] decodeDC(String secMobileNo, String secretKey)
secMobileNo - 代表手机号码和时间戳的长字符串public static String encode(String plainText, String secretKey) throws Exception
plainText - 普通文本Exceptionpublic static String decode(String encryptText, String secretKey) throws Exception
Exceptionpublic static String[] decodeMobileNo(String sec)
sec - 代表手机号码和时间戳的长字符串public static String encodeMobileNo(String mobileNo)
mobileNo - 必须是11位手机号码public static int createRandomStr(int s)
Copyright © 2019. All rights reserved.