des加密算法的java实现(窗口的实现部分)

des加密算法的java实现(窗口的实现部分)

ID:26167831

大小:53.00 KB

页数:8页

时间:2018-11-25

des加密算法的java实现(窗口的实现部分)_第1页
des加密算法的java实现(窗口的实现部分)_第2页
des加密算法的java实现(窗口的实现部分)_第3页
des加密算法的java实现(窗口的实现部分)_第4页
des加密算法的java实现(窗口的实现部分)_第5页
资源描述:

《des加密算法的java实现(窗口的实现部分)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、以下为DES加密算法的实现(附控制台输出调试代码)/**Window.java**Createdon__DATE__,__TIME__*/packagedeswindow;importjava.util.Scanner;/****@author__USER__*/publicclassWindowextendsjavax.swing.JFrame{/**CreatesnewformWindow*/publicWindow(){initComponents();}/**Thismethodiscalledfromwithintheconstructorto*in

2、itializetheform.*WARNING:DoNOTmodifythiscode.Thecontentofthismethodis*alwaysregeneratedbytheFormEditor.*///GEN-BEGIN:initComponents//privatevoidinitComponents(){button1=newjava.awt.Button();textField1=newjava.awt.TextField();t

3、extField2=newjava.awt.TextField();内容=newjava.awt.Label();密钥=newjava.awt.Label();textArea1=newjava.awt.TextArea();button2=newjava.awt.Button();setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);button1.setLabel("加密");button1.addActionListener(newjava.awt.event.Action

4、Listener(){publicvoidactionPerformed(java.awt.event.ActionEventevt){button1ActionPerformed(evt);}});textField1.setText("请输入明文或者密文");textField1.addActionListener(newjava.awt.event.ActionListener(){publicvoidactionPerformed(java.awt.event.ActionEventevt){textField1ActionPerformed(evt)

5、;}});textField2.setText("请输入密钥");textField2.addActionListener(newjava.awt.event.ActionListener(){publicvoidactionPerformed(java.awt.event.ActionEventevt){textField2ActionPerformed(evt);}});内容.setText("内容");密钥.setText("密钥");button2.setLabel("解密");button2.addActionListener(newjava.awt

6、.event.ActionListener(){publicvoidactionPerformed(java.awt.event.ActionEventevt){button2ActionPerformed(evt);}});javax.swing.GroupLayoutlayout=newjavax.swing.GroupLayout(getContentPane());getContentPane().setLayout(layout);layout.setHorizontalGroup(layout.createParallelGroup(javax.s

7、wing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(127,127,127).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(textArea1,javax

8、.swing.GroupLayout.

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。