Zip DecryptPassword and EncryptPassword


I’m confused about DecryptPassword and EncryptPassword.

I want to encrypt the files I am emailing. I want the recipient to be required to enter a password when they try to open the zipped file. Do I EncryptPassword or DecryptPassword?


Use DecryptPassword when using the Chilkat Zip component / library to open an encrypted zip. Use EncryptPassword when writing an encrypted .zip. The reason there are two separate properties is because of this situation: Let’s say you want to rewrite an encrypted .zip using a new password. Chilkat Zip will open the existing zip and decrypt using DecryptPassword, but will use EncryptPassword when rewriting the zip.

Tags :