1、优化sm4_cbc加解密方法
This commit is contained in:
@@ -64,10 +64,10 @@ public class FileUtil {
|
||||
* @param path 文件路径
|
||||
* @param data 数据
|
||||
*/
|
||||
public static void printDataToFile(String path, String data) {
|
||||
BufferedWriter osw = null;
|
||||
public static void printDataToFile(String path, byte[] data) {
|
||||
BufferedOutputStream osw = null;
|
||||
try {
|
||||
osw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), "UTF-8"));
|
||||
osw = new BufferedOutputStream(new FileOutputStream(path));
|
||||
|
||||
osw.write(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user