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

📄 unit1.~pas

📁 实现DEA加密和解密算法
💻 ~PAS
字号:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls, FileCtrl;

type
  TForm1 = class(TForm)
    Panel1: TPanel;
    Label1: TLabel;
    Panel2: TPanel;
    Button3: TButton;
    Button2: TButton;
    Panel3: TPanel;
    FileListBox1: TFileListBox;
    DirectoryListBox1: TDirectoryListBox;
    DriveComboBox1: TDriveComboBox;
    Label2: TLabel;
    Label3: TLabel;
    FilterComboBox1: TFilterComboBox;
    Edit2: TEdit;
    Label7: TLabel;
    Panel4: TPanel;
    RadioGroup2: TRadioGroup;
    RadioGroup1: TRadioGroup;
    Edit1: TEdit;
    Label4: TLabel;
    procedure Button3Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);

  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
uses Unit2, Unit3;

{$R *.dfm}




procedure TForm1.Button3Click(Sender: TObject);
begin
    if (edit2.Text='*.txt')or(edit2.Text='*.txt') then
       showmessage('请先选择要要加密的文件!')
    else
    if RadioGroup1.ItemIndex=-1 then
       showmessage('请先选择要信息块长度!')
    else
    begin
    Form2:=TForm2.Create(nil);
    Form2.show;
    end;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
     if (edit2.Text='*.txt')or(edit2.Text='*.txt') then
       showmessage('请先选择要要加密的文件!')
    else
    if RadioGroup1.ItemIndex=-1 then
       showmessage('请先选择要信息块长度!')
    else
    begin
    Form3:=TForm3.Create(nil);
    Form3.show;
    end;
end;
end.

⌨️ 快捷键说明

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