⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_pc1_inputstream.java

📁 JAVA加密算法之一
💻 JAVA
字号:
/* This file is a quick test for the PC1_InputStream *//* It will unencrypt a given file, using the above class */import java.io.*;public class Test_PC1_InputStream{      public static void main(String s[]) throws FileNotFoundException, IOException      {	 System.out.println("Test for PC1_InputStream.");	 	 if (s.length!=3) {	    System.out.println("USAGE: javac Test_PC1_InputStream in_encrypted_file out_plain_file password.");	    System.exit(-1);	 }	 System.out.println();	 PC1_InputStream in = new PC1_InputStream(new FileInputStream(s[0]),s[2].getBytes());	 FileOutputStream out = new FileOutputStream(s[1]);	 int c = in.read();	 while (c != -1)	 {	    out.write(c);	    	    c = in.read();	 }	 	 System.out.println("done");      }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -