Search code examples
c#.netpasswordszipdotnetzip

create zip file in .net with password


I'm working on a project that I need to create zip with password protected from file content in c#.

Before I've use System.IO.Compression.GZipStream for creating gzip content. Does .net have any functionality for create zip or rar password protected file?


Solution

  • WARNING:
    DotNetZip is not longer maintained! If you're still looking for a solution, it looks like SharpZipLib is a good alternative but I haven't used it myself.

    Take a look at DotNetZip (@AFract supplied a new link to GitHub in the comments)

    It has got pretty geat documentation and it also allow you to load the dll at runtime as an embeded file.