IO-加密工具
2020-08-16 15:53
330 查看
public static void main(String[] args) throws IOException { System.out.println("请输入文件的全路径"); Scanner scanner = new Scanner(System.in); String filename = scanner.nextLine(); //原文件 File oldFile = new File(filename); //加密文件 加前缀mi- File newFile = new File(oldFile.getParent(),"mi-"+oldFile.getName()); FileInputStream fis = new FileInputStream(oldFile); FileOutputStream fos = new FileOutputStream(newFile); while (true){ int b = fis.read(); if(b==-1){ break; } //任何数据^10两次 结果还是其本身 加密解密过程 fos.write(b^10); } System.out.println("加密或解密完成"); }
相关文章推荐
- 加密小工具
- 加密连接工具Cryptcat
- Spring Security 3.1 中功能强大的加密工具 PasswordEncoder
- 游戏配置文件加密工具(附源码)
- Linux IO工具 iotop备择方案iopp
- 一个加密解密的小工具及源码(MD5, DES, RSA)
- Linux的IO性能监控工具iostat详解
- 使用主密码对各种账户密码进行加密管理的文件加密工具
- 程序数据资料资源加密保护工具控件XBundler® Win32/.NET
- linux磁盘IO分析工具 IOSTAT简介
- GPP加密破解工具gpp-decrypt
- Android 混淆代码学习以及Android加密工具--APKProtect的使用
- Linux的IO性能监控工具iostat详解
- Oracle ORION IO 测试工具
- Linux的IO性能监控工具iostat详解
- 采用ASP.NET IIS 注册工具 (Aspnet_regiis.exe)对web.config实行本地加密
- C#加密解密文件小工具实现代码
- Linux IO实时监控工具iostat
- Android、iPhone和Java三个平台一致的加密工具
- io系统的压力测试工具-fio