zip icon indicating copy to clipboard operation
zip copied to clipboard

Ownheader

Open davrux opened this issue 6 years ago • 2 comments

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)
}
.....

davrux avatar Jun 11 '18 14:06 davrux

any progress?

mei-rune avatar Jun 18 '19 12:06 mei-rune

Please apply this patch! I also ran into this issue (wanting to set file modtime on an encrypted file header)

twbryan avatar Sep 20 '19 00:09 twbryan