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
(4)
1,613 times
Add to favorites
9/21/2016
E-mail Twitter del.icio.us 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"/>
</xml>