public class DESCryptUtils extends Object
构造说明 :
des 加密算法
| 构造器和说明 |
|---|
DESCryptUtils()
默认构造方法,使用默认密钥
|
DESCryptUtils(String strKey)
指定密钥构造方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
decrypt(byte[] arrB)
解密字节数组
|
String |
decrypt(String strIn)
解密字符串
|
byte[] |
encrypt(byte[] arrB)
加密字节数组
|
String |
encrypt(String strIn)
加密字符串
|
public DESCryptUtils()
throws Exception
Exception - 不处理任何异常,所有异常全部抛出public byte[] encrypt(byte[] arrB)
throws Exception
arrB - 需加密的字节数组Exception - 不处理任何异常,所有异常全部抛出public String encrypt(String strIn) throws Exception
strIn - 需加密的字符串Exception - 不处理任何异常,所有异常全部抛出public byte[] decrypt(byte[] arrB)
throws Exception
arrB - 需解密的字节数组Exception - 不处理任何异常,所有异常全部抛出Copyright © 2019. All rights reserved.