ZipArchive Password
Is there a way to password protect a Zip file created with Syncfusion.Compression.Zip.ZipArchive?
SIGN IN To post a reply.
9 Replies
BP
Bhuvaneswari P
Syncfusion Team
June 10, 2008 12:03 PM UTC
Hi,
Thank you for your interest in Syncfusion products.
Currently we don't have support for this feature. Please let me know if you have any other questions.
Best Regards,
Bhuvana
Thank you for your interest in Syncfusion products.
Currently we don't have support for this feature. Please let me know if you have any other questions.
Best Regards,
Bhuvana
TA
Tony Amos
July 6, 2010 02:30 AM UTC
I just thought I'd ask if the ability to open or save password protected zip files has been added to ZipArchive yet.
HS
Howard Shlom
April 26, 2011 03:54 PM UTC
It's been almost three year since the last post by SyncFusion.
Has password pretection been added to ZipArchive yet?
Thanks.
Has password pretection been added to ZipArchive yet?
Thanks.
GM
Geetha M
Syncfusion Team
April 27, 2011 12:26 PM UTC
Hi Howard,
Thank you for your interest in Syncfusion products.
The feature to password protect zip files created using Compression.Base is not yet available. We will let you know once it is added in our library.
Please let me know if you have any questions.
Regards,
Geetha
Thank you for your interest in Syncfusion products.
The feature to password protect zip files created using Compression.Base is not yet available. We will let you know once it is added in our library.
Please let me know if you have any questions.
Regards,
Geetha
MA
Mike Allen
April 24, 2017 08:56 PM UTC
How about now?
AV
Abirami Varadharajan
Syncfusion Team
April 25, 2017 11:15 AM UTC
Hi Mike,
Currently, we don’t have support for “Password functionality in Compression.Base”. However, we have added it to our feature request list and it will be implemented in our upcoming release 2017 Vol 4.
Please let us know if you have any concerns.
Regards,
Abirami.
Hi Mike,Currently, we don’t have support for “Password functionality in Compression.Base”. However, we have added it to our feature request list and it will be implemented in our upcoming release 2017 Vol 4.Please let us know if you have any concerns.Regards,Abirami.
How about now - it's been 12 years since the original request?
KK
Konduru Keerthi Konduru Ravichandra Raju
Syncfusion Team
January 8, 2020 09:51 AM UTC
Hi Darren,
Thanks for your patience.
We have implemented the feature Password functionality in Compression.Base and included in our release version v15.3.0.26 which was rolled out in August 2017. We suggest you to use our latest version v17.4.0.39, which includes this implementation along with more bug fixes and features.
You can download the Essential Studio 2019 Volume 4 release version v17.4.0.39 from the following link.
Please look into the following into the following code snippets for protecting and un-protecting the Zip files.
Code Snippet to protect a Zip file:
|
ZipArchive zipArchive = new ZipArchive();
zipArchive.AddFile("../../Data/Template1.txt");
zipArchive.AddFile("../../Data/Template2.txt");
zipArchive.AddFile("../../Data/Template3.txt");
zipArchive.Protect("Syncfusion", EncryptionAlgorithm.ZipCrypto);
zipArchive.Save("WithPasswordZipCrypto.zip"); |
Code snippet to un-protect a Zip file:
|
ZipArchive zipArchive = new ZipArchive();
zipArchive.Open(new FileStream("../../Data/Protected.zip", FileMode.Open), false, "Syncfusion");
zipArchive.UnProtect();
zipArchive.Save("WithOutPassword.zip"); |
A simple working sample can be downloaded from the following link.
Regards,
Keerthi.
DC
DC
January 8, 2020 11:30 AM UTC
Thank you!
SIGN IN To post a reply.
- 9 Replies
- 9 Participants
-
AD Administrator
- Jun 7, 2008 12:16 AM UTC
- Jan 8, 2020 11:30 AM UTC