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:\ZipTest\testzipfile.zip", source="C:\ZipTest\sample.txt", password="pass");

cfzip(action="list", name="zipFileList", file="C:\ZipTest\testzipfile.zip");

cfzip(action="unzip", file="C:\ZipTest\testzipfile.zip", destination="C:\ZipTest\", password="pass", overwrite="true");

More examples here.

0 Comments to “CFZip Enhancements in ColdFusion Splendor”

Leave a Comment

Leave this field empty: