home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
delphi
/
tenpack.lzh
/
CRYPDEMO.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-05-11
|
1KB
|
56 lines
unit crypdemo;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, FileCtrl, pscrypt;
type
TDemoCrypt = class(TForm)
FileCrypt1: TFileCrypt;
DriveComboBox1: TDriveComboBox;
DirectoryListBox1: TDirectoryListBox;
FileListBox1: TFileListBox;
Memo1: TMemo;
Edit1: TEdit;
Label2: TLabel;
Edit2: TEdit;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
Label1: TLabel;
Label3: TLabel;
procedure BitBtn1Click(Sender: TObject);
procedure BitBtn2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
DemoCrypt: TDemoCrypt;
implementation
{$R *.DFM}
procedure TDemoCrypt.BitBtn1Click(Sender: TObject);
begin
Filecrypt1.password := edit2.text;
Filecrypt1.filename := edit1.text;
Filecrypt1.cryptfile;
If BitBtn1.Caption = '&Encrypt' then
BitBtn1.Caption := '&Decrypt'
else
BitBtn1.Caption := '&Encrypt';
end;
procedure TDemoCrypt.BitBtn2Click(Sender: TObject);
begin
Memo1.lines.LoadFromFile(edit1.text);
end;
end.