hi there
i have tried to get it running, but it doesn't seem to work at all
here is my code:
function Encrypt(const a, key: string): string;
var
I, O, EC: TStream;
begin
I := TStringStream.Create(a);
try
O := TStringStream.Create('');
try
EC := TblowfishEncryptStream.Create(Key, O);
try
EC.CopyFrom(I, I.Size);
finally
EC.Free;
end;
result := TStringStream(O).DataString;
finally
O.Free;
end;
finally
I.Free;
end;
end;
procedure EncryptStr;
begin
el[1].eusername:=Encrypt(tl[1].tempusername, 'key');
el[1].epassword:=Encrypt(tl[1].temppassword, 'key');
end;