Advertisement
guionardo

Erro Blowfish Descriptografia

Apr 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.53 KB | None | 0 0
  1. function TBlowFishCripto.Decrypt(const encrypted: string;
  2.   out decrypted: string): boolean;
  3. var
  4.   de: TBlowFishDeCryptStream;
  5.   stream: TStringStream;
  6. begin
  7.   if length(encrypted) = 0 then
  8.   begin
  9.     Result := True;
  10.     decrypted := '';
  11.     Exit;
  12.   end;
  13.   try
  14.     stream := TStringStream.Create(encrypted);
  15.     de := TBlowFishDeCryptStream.Create(FKey, stream);
  16.     decrypted := de.ReadAnsiString; { <-- AQUI O ERRO 203 acontece }
  17.     Result := True;
  18.   finally
  19.     FreeAndNil(de);
  20.     FreeAndNil(stream);
  21.   end;
  22. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement