public class DESPlus extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
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 byte[] decrypt(byte[] arrB)
arrB - 需解密的字节数组public static void main(String[] args)
Copyright © 2015–2022 cn.gtmap. All rights reserved.