zip icon indicating copy to clipboard operation
zip copied to clipboard

Fork of Go's archive/zip to add reading/writing of password protected zip files.

Results 8 zip issues
Sort by recently updated
recently updated
newest added

This PR contains: 1. add go module. 2. **add support for standard password validation** 3. some fixes.

This fix allows zip to read archives that include files larger than 4GB and/or those that use zip64 extra fields. This is simply a backport of fixes that were made...

Hi Yeka, I found this to be necessary in order to use CreateHeader which I needed to set the last modified date on files added to an encrypted zip file....

![photo_2020-10-06_18-17-42](https://user-images.githubusercontent.com/11578088/95221590-44123c00-0800-11eb-85a2-16536cff4d3c.jpg) Flag 0x800 solves the problem with the file name encoding, for example, if the name was written in russian letters.

There was no modified date/time set when encrypting a file in an archive... So I added a way to set time.Now() as the default one or specify it. The current...

Exports SetEncryptionMethod. Using own headers may be useful when using UTF-8 file names: fh := &zip.FileHeader{ Name: "test öäü.jpg", Method: zip.Deflate, Flags: 0x800, } fh.SetPassword("test") fh.SetEncryptionMethod(zip.AES256Encryption) w, err := z.w.CreateHeader(fh)...

1. Add StandardEncryption description:the description says, "Why not use the Standard Encryption?" 2. Add Example Encrypt Multiple Files: you will need it when you zip multiple files.