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,667 times
Add to favorites
E-mail Twitter 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,
  • Greate!
    1 Posts | Last post March 07, 2019