import java.awt.*;
【相关文章:什么是iSCSI?】 【扩展阅读:轻松解读iSCSI技术的数据存储之道】import java.awt.event.*; 【扩展信息:IP存储前沿:iSCSI技术之彻底剖析篇】 import javax.swing.*; import java.io.*; import java.security.*; import javax.crypto.*; import javax.crypto.spec.*; /** 文件名:fileencrypter.java jdk:1.40以上 说明:文件加密 加密方法:三重des加密 加密过程:对选中的文件加密后在同文件夹下生成一个增加了“.tdes”扩展名的加密文件 解密过程:对选中的加密文件(必须有“.tdes”扩展名)进行解密
public class fileencrypter extends jframe{ public static final int width = 550;
public static final int height = 200; public static void main(string args[]) { fileencrypter fe = new fileencrypter(); fe.show(); }fileencrypter(){
this.setsize(width,height); this.setdefaultcloseoperation(jframe.exit_on_close); this.setresizable(false); toolkit tk = toolkit.getdefaulttoolkit(); dimension screensize = tk.getscreensize(); this.setlocation((screensize.width - width)/2, (screensize.height - height)/2); this.settitle("文件加密器(trides)"); container c = this.getcontentpane(); c.setlayout( new flowlayout()); final filepanel fp = new filepanel("文件选择"); c.add(fp); ... 下一页