synopse / SynPDF

Synopse PDF engine is a fully featured Open Source PDF document creation library for Delphi, embedded in one unit
295 stars 106 forks source link

TAESCFB.SimpleEncrypt doesn't work for large files #50

Closed xelnaga64 closed 3 years ago

xelnaga64 commented 3 years ago

I use this code for file encryption:

var
  inputfile : RawByteString;
  outputfile: RawByteString;
begin
  inputfile := StringFromFile('c:\test1.mp4');
  outputfile := TAESCFB.SimpleEncrypt(inputfile,'TEST',true,true);
  FileFromString(outputfile,'c:\test2.mp4');
end;

However it doesn't work for large files (>1GB). Is there any way to encrypt large files?

synopse commented 3 years ago

This has nothing to do with SynPDF.

Please use https://synopse.info/forum for such questions.

TL&DR: there is no stream encryption support yet, only in-memory encryption.