zip
zip copied to clipboard
Fork of Go's archive/zip to add reading/writing of password protected zip files.
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....
 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.
Support UTF8 file names