Search code examples
gozip

Golang creating password protected zip file


I am trying to create password protected zip file in golang using package archive/zip. I am not able to find any example that it support creating password protected archive. I came across another library https://github.com/alexmullins/zip but last commit on it is 5 years back and I am not sure if it will not create any issue if used in code.

How I can create password protected archive in golang. Does archive/zip can be used to create password protected archive.


Solution

  • For now using https://github.com/alexmullins/zip to create password protected zip file.