This sample demonstrates ZipForge support of the strong AES encryption of ZIP archives 
 
Download ZipForge | Learn More | All Delphi samples
 
program ZipWithAESEncryption;
{$APPTYPE CONSOLE}
uses
  SysUtils, ZipForge, Classes;
var
  archiver : TZipForge;
begin
    archiver := TZipForge.Create(nil);
  try
  with archiver do
  begin
        FileName := 'C:\test.zip';
            OpenArchive(fmCreate);
        BaseDir := 'C:\';
        EncryptionMethod := caAES_256;
    Password := 'my_password';
            AddFiles('c:\test.txt');
    CloseArchive();
  end;
  except
  on E: Exception do
    begin
      Writeln('Exception: ', E.Message);
            Readln;
    end;
  end;
end.
 
 
Download ZipForge | Learn More | All Delphi samples |   
 
 |   
 | 
 
Current version: 6.97
    
     Released: May 27, 2025
    Price: $ 69
    
       
 |   
 |   
 
 
  
   
 
| 
 Thanks again for the superb tech support, I was worried I'd hit a brick wall this close to the finish line. Even working on the weekend... you guys rock!!!
 
 
  Bob Boyd        
 
 |   
 |   
 
 |