desmain.~pas
来自「delphi实现加密算法 CRC32-Dym.................」· ~PAS 代码 · 共 58 行
~PAS
58 行
unit DESMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, DESUnit;
type
TForm1 = class(TForm)
StatusBar1: TStatusBar;
GroupBox1: TGroupBox;
GroupBox2: TGroupBox;
Label1: TLabel;
EInput: TEdit;
Label2: TLabel;
EKey1: TEdit;
Label3: TLabel;
EOutput: TEdit;
Label4: TLabel;
DInput: TEdit;
Label6: TLabel;
DOutput: TEdit;
Button1: TButton;
Button2: TButton;
Label7: TLabel;
EKey2: TEdit;
Label5: TLabel;
DKey1: TEdit;
Label8: TLabel;
DKey2: TEdit;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
EOutput.Text:=DESEncrypt(DESEncrypt(EInput.Text,EKey1.Text),EKey2.Text);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
DOutput.Text:=DESDecrypt(DESDecrypt(DInput.Text,DKey2.Text),DKey1.Text);
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?