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
(4)
1,667 times
Add to favorites
9/21/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Only Text files?
    1 Posts | Last post July 08, 2019
    • Hello,
      
      Since StreamWriter.Write has no (bytes[]) parameter, only (string),
      how can I encrypt a PDF file(as an example)?
      
      Thank you,
      Daniel
  • Greate!
    1 Posts | Last post March 07, 2019