Compress with password

Other discussions about CSPro
Post Reply
YFT_CBSD
Posts: 65
Joined: January 3rd, 2023, 12:36 am

Compress with password

Post by YFT_CBSD »

Hi can i compress a zip file with a password? is this possible? thanks
Gregory Martin
Posts: 1948
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Compress with password

Post by Gregory Martin »

Our Zip creation library does not support encrypting files. Depending on your needs, you could:

1) Zip the file to a temporary unencrypted file using compress.
2) Use an Encrypted CSPro DB file to store that file (using the Document.load function to load it from the temporary file).
Post Reply