Skip to main content

How to Create a Zip File with Password

The C# sample code demonstrates how to create an encrypted and zipped file using AesCryptoServiceProvider and ZipPackage class.

C# (324.1 KB)
3.8 Star
1,671 times
Add to favorites
E-mail Twitter Digg Facebook
<xml xmlns:o="urn:schemas-microsoft-com:office:office">
 <o:MainFile HRef="../Documentation.htm"/>
 <o:File HRef="item0009.xml"/>
 <o:File HRef="props010.xml"/>
 <o:File HRef="themedata.thmx"/>
 <o:File HRef="colorschememapping.xml"/>
 <o:File HRef="image005.png"/>
 <o:File HRef="image002.jpg"/>
 <o:File HRef="editdata.mso"/>
 <o:File HRef="filelist.xml"/>