zip
zip copied to clipboard
Ownheader
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)
if err != nil {
panic(err)
}
.....
any progress?
Please apply this patch! I also ran into this issue (wanting to set file modtime on an encrypted file header)