Открытие:var
temp:string;
begin
if opendialog1.Execute then
begin
f:=opendialog1.FileName;
memo1.Lines.LoadFromFile(f);
InputQuery ('Пароль:','',pass);
if memo1.Text<>'' then
begin
GenerateLMDKey(Key128, SizeOf(Key128), pass);
try
temp := RDLEncryptStringCBCEx(memo1.text, Key128, 16, false);
form1.Caption:='my Encoder - '+f;
except
showmessage('Это не зашифрованный файл!');
f:='';
try
close;
except
end;
end;
memo1.Text:=temp;
end;
end
else
close;
Сохранение:GenerateLMDKey(Key128, SizeOf(Key128), pass);
temp:=RDLEncryptStringCBCEx(memo1.text, Key128, 16, true);
memo1.text:=temp;
memo1.Lines.SaveToFile(f);
Шифрование алгоритмами: Blowfish, RSA, MD5, SHA-1, DES, triple-DES, Rijndael, & digital signing of messages
Набор компонентов tplockbox