freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于aes的小型數(shù)據(jù)安全傳輸系統(tǒng)---即時通訊應(yīng)用開發(fā)(文件)

2024-12-04 03:59 上一頁面

下一頁面
 

【正文】 else { initSocket()。 } } public void initGUI() { //初始化用戶界面 setTitle(From: + () + To: + ())。 getContentPane().add(buttonPanel, )。 setLocationRelativeTo(null)。 ()。 JButton exitButton = new JButton(關(guān)閉 (X))。 } })。 } private void initReceivePanel() { (false)。 JLabel label = new JLabel()。 ().add(receiveTextArea)。 (new Dimension(0, DEFAULT_WIDTH / 3))。 (())。 JScrollPane scrollPane = new JScrollPane()。 (new KeyAdapter() { public void keyPressed(KeyEvent event) { // Ctrl+Enter組合鍵 if ((() == ) amp。 } } 14 } })。 } public void receive() throws IOException { //接收消息 // 解密 byte[] data = (())。 (message)。 ((Asia/Shanghai))。 (\r\n)。 (((CHARSET)))。 (null)。 Thread t = new Thread(mainFrame)。 import 。 import 。// 接收套接字 private DatagramSocket sendSocket。 = sendPort。 (dp)。 ()。 (data)。 } if (()) { // 關(guān)閉發(fā)送套接字 ()。 import 。 import 。 private static Key getKey() throws Exception { byte[] key = (())。 // 實例化 // 初始化,設(shè)置為解密模式 (, getKey())。 } } //加密 public static byte[] encrypt(byte[] data) { try { Cipher cipher = (ALGORITHM)。 return data。 return (data)。 // 執(zhí)行操作 } catch (Exception e) { ()。 return secretKey。 public abstract class Security { public static final String ALGORITHM = AES。 import 。 } } catch (Exception ex) { ()。 } public void close() { try { if (()) { // 關(guān)閉接收套接字 ()。 return data。 ((), 0, ())。 = new DatagramSocket()。 private int sendPort。 public class UDPSocket { private byte[] buffer = new byte[1024]。 import 。 } } 類 package AES1。 } catch (Exception e) { ()。 (sendMessage)。 (\r\n)。 ((new Date()))。 } // 發(fā)送消息 public void send(String message) throws IOException { if (()) { return。 StringBuilder sb = new StringBuilder()。 (scrollPane, )。 (())) { try { send(())。 DefaultCaret caret = (DefaultCaret) ()。 (待發(fā)送的消息: )。 } private void initSendPanel() { //初始化發(fā)送消息面板 JPanel panel = new JPanel()。 ()。 (label, )。 (new BorderLayout())。 (sendButton)。 (new ActionListener() { Override public void actionPerformed(ActionEvent e) { ()。 } catch (IOException ioe) { ()。 setResizable(false)。 initSendPanel()。 setMinimumSize(new Dimension(DEFAULT_WIDTH, DEFAULT_HEIGHT))。 } } public void initSocket() { try { socket = new UDPSocket((), initDialog .getRemoteHost(), (), initDialog .getSendPort())。 public MainFrame() { = new InitDialog(this)。 private JSplitPane splitPane = new JSplitPane()。//字符集 private UDPSocket socket。 import 。 import 。 import 。 import 。 import 。 // 窗口在屏幕中間顯示 setVisible(true)。 getContentPane().add(buttonPanel, )。 JPanel buttonPanel = new JPanel()。 } })。 sendPort = (())。 JButton okButton = new JButton(確定 )。 (new JLabel(發(fā)送端口: ))。 (new JLabel(本地主機: ))。 (new Dimension(80, 120))。 final JTextField receivePortField = new JText
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1