L
lotomer
Unregistered / Unconfirmed
GUEST, unregistred user!
memo1 内容为(没行一个字母):a,b,c,d
经过Encrypt加密后显示在listbox1中
再解密到listbox2中,部分源码:
procedure TForm1.btn_EncryptClick(Sender: TObject);
var
i,n:integer;
begin
n:=memo1.Lines.Count;
for i :=0 to n-1 do
begin
listbox1.Items.Add(Encrypt(memo1.Lines.Strings,'lotomer'));
end;
end;
procedure TForm1.btn_DecryptClick(Sender: TObject);
var
i,n:integer;
begin
n:=memo1.Lines.Count;
for i :=0 to n-1 do
begin
listbox2.Items.Add(Decrypt(listbox1.Items,'lotomer'));
end;
end;
结果是:a,ab,abc,abcd
请大家指点,谢谢
经过Encrypt加密后显示在listbox1中
再解密到listbox2中,部分源码:
procedure TForm1.btn_EncryptClick(Sender: TObject);
var
i,n:integer;
begin
n:=memo1.Lines.Count;
for i :=0 to n-1 do
begin
listbox1.Items.Add(Encrypt(memo1.Lines.Strings,'lotomer'));
end;
end;
procedure TForm1.btn_DecryptClick(Sender: TObject);
var
i,n:integer;
begin
n:=memo1.Lines.Count;
for i :=0 to n-1 do
begin
listbox2.Items.Add(Decrypt(listbox1.Items,'lotomer'));
end;
end;
结果是:a,ab,abc,abcd
请大家指点,谢谢