|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.gtmap.estateplat.utils.DESPlus
public class DESPlus
| 构造方法摘要 | |
|---|---|
DESPlus()
默认构造方法,使用默认密钥 |
|
DESPlus(String strKey)
指定密钥构造方法 |
|
| 方法摘要 | |
|---|---|
static String |
byteArr2HexStr(byte[] arrB)
将byte数组转换为表示16进制值的字符串, 如:byte[]{8,18}转换为:0813, 和public static byte[] hexStr2ByteArr(String strIn) 互为可逆的转换过程 |
byte[] |
decrypt(byte[] arrB)
解密字节数组 |
String |
decrypt(String strIn)
解密字符串 |
byte[] |
encrypt(byte[] arrB)
加密字节数组 |
String |
encrypt(String strIn)
加密字符串 |
static byte[] |
hexStr2ByteArr(String strIn)
将表示16进制值的字符串转换为byte数组, 和public static String byteArr2HexStr(byte[] arrB) 互为可逆的转换过程 |
static void |
main(String[] args)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public DESPlus()
public DESPlus(String strKey)
strKey - 指定的密钥| 方法详细信息 |
|---|
public static String byteArr2HexStr(byte[] arrB)
arrB - 需要转换的byte数组
public static byte[] hexStr2ByteArr(String strIn)
strIn - 需要转换的字符串
public byte[] encrypt(byte[] arrB)
arrB - 需加密的字节数组
public String encrypt(String strIn)
strIn - 需加密的字符串
public byte[] decrypt(byte[] arrB)
arrB - 需解密的字节数组
public String decrypt(String strIn)
strIn - 需解密的字符串
public static void main(String[] args)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||