public class HuToolSymmetricCryptoAdapter extends Object implements ISymmetricCrypto
| 构造器和说明 |
|---|
HuToolSymmetricCryptoAdapter(cn.hutool.crypto.symmetric.SymmetricCrypto symmetricCrypto)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
decrypt(byte[] bytes)
解密
|
void |
decrypt(InputStream data,
OutputStream out,
boolean isClose)
解密,针对大数据量,结束后不关闭流
|
byte[] |
encrypt(byte[] data)
加密
|
void |
encrypt(InputStream data,
OutputStream out,
boolean isClose)
加密,针对大数据量,可选结束后是否关闭流
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecrypt, decrypt, decryptStr, decryptStr, decryptStr, decryptStr, decryptStr, decryptStr, encrypt, encrypt, encrypt, encrypt, encryptBase64, encryptBase64, encryptBase64, encryptBase64, encryptBase64, encryptHex, encryptHex, encryptHex, encryptHex, encryptHexpublic HuToolSymmetricCryptoAdapter(cn.hutool.crypto.symmetric.SymmetricCrypto symmetricCrypto)
symmetricCrypto - HuTool对称加密public byte[] encrypt(byte[] data)
ISymmetricCryptoencrypt 在接口中 ISymmetricCryptodata - 被加密的bytespublic void encrypt(InputStream data, OutputStream out, boolean isClose) throws cn.hutool.core.io.IORuntimeException
ISymmetricCryptoencrypt 在接口中 ISymmetricCryptodata - 被加密的字符串out - 输出流,可以是文件或网络位置isClose - 是否关闭流cn.hutool.core.io.IORuntimeException - IO异常public byte[] decrypt(byte[] bytes)
ISymmetricCryptodecrypt 在接口中 ISymmetricCryptobytes - 被解密的bytespublic void decrypt(InputStream data, OutputStream out, boolean isClose) throws cn.hutool.core.io.IORuntimeException
ISymmetricCryptodecrypt 在接口中 ISymmetricCryptodata - 加密的字符串out - 输出流,可以是文件或网络位置isClose - 是否关闭流,包括输入和输出流cn.hutool.core.io.IORuntimeException - IO异常Copyright © 2021 EasyJ寮�婧愮ぞ鍖�. All rights reserved.