Commit Graph

7 Commits

Author SHA1 Message Date
alexmullins 1b10667c88 Change package doc 2015-11-26 19:24:36 -06:00
alexmullins 5a264afc2d Change how the password is set on the FileHeader.
A new field on the FileHeader struct called Password
of type PasswordFn will be set when either reading
or writing a password protected zip. The previous
method was unsuitable due to the ambiguity of
an empty password "" and no password. This new
way can now differentiate the two.
2015-11-26 18:43:22 -06:00
alexmullins 28a48eb706 Tidy up code 2015-11-26 15:22:28 -06:00
alexmullins a0910dd023 Move all password related fields to the FileHeader
This will unify the reading and writing API. Eventually
the SetPassword function will be deprecated in favor
of a Password field that is of type func() []byte. This way
the password can be set dynamically. This will also help in
differentiating a nil password and an empty password.
2015-11-26 14:46:37 -06:00
alexmullins abdb448165 change package documentation header to include add. features 2015-10-29 16:47:39 -05:00
alexmullins ea2bc2cf67 Added initial support for reading pw protected files. 2015-10-29 16:14:19 -05:00
alexmullins fa71aa0e14 Initial commit and README.txt 2015-10-27 04:12:51 -05:00