CFZip Enhancements in ColdFusion Splendor

CFZip has been in ColdFusion since CF8 but it was only for unencrypted zip files. ColdFusion Splendor brings password protection to CFZip with multiple encryption methods. 2 new attributes have been added to CFZip and CFZipParam to support this functionality.

Password

EncryptionAlgorithm  <Standard, AES-128,  AES-256 (default)>

 

Examples

cfzip(action=”zip”, file=”C:ZipTesttestzipfile.zip”, source=”C:ZipTestsample.txt”, password=”pass”);

cfzip(action=”list”, name=”zipFileList”, file=”C:ZipTesttestzipfile.zip”);

cfzip(action=”unzip”, file=”C:ZipTesttestzipfile.zip”, destination=”C:ZipTest”, password=”pass”, overwrite=”true”);

More examples here.

Leave a Reply

Your email address will not be published. Required fields are marked *