April 1, 2014
CFZip Enhancements in ColdFusion Splendor
Comments
(1)
April 1, 2014
CFZip Enhancements in ColdFusion Splendor
(1)

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.

1 Comment
2018-07-28 21:41:10
2018-07-28 21:41:10

Was just trying out these features for the first time. The behavior I’m seeing is that a password gets added (cfzip action=unzip gets challenged when opening) but I can still manually open the zip file simply by using windows or any other unzip (also tried winrar) program without being challenged for the password.

Anyone else experience this behavior with cfzip when attempting to password protect a file?

Like
Add Comment