| 构造器和说明 |
|---|
CryptoFileUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static byte[] |
flieToBytes(File file)
文件转字节数组
|
protected static File |
outputFile(byte[] bytes,
File resultFile)
文件输出
|
protected static File |
streamCipherDecryptFile(File encryptFile,
Cipher cipher,
File result)
使用cipher对象进行文件解密
|
protected static File |
streamCipherEncryptFile(File sourceFile,
Cipher cipher,
File result)
使用cipher对象进行文件加密
|
protected static byte[] flieToBytes(File file) throws IOException
file - 文件IOException - IO异常protected static File outputFile(byte[] bytes, File resultFile) throws IOException
bytes - 待输出字节数组resultFile - 用于接收的输出文件IOExceptionprotected static File streamCipherEncryptFile(File sourceFile, Cipher cipher, File result) throws IOException
sourceFile - 源文件cipher - cipher对象result - 输出文件IOException - IO异常protected static File streamCipherDecryptFile(File encryptFile, Cipher cipher, File result) throws IOException
encryptFile - 加密文件cipher - cipher对象result - 输出文件IOException - IO异常Copyright © 2022. All rights reserved.