Commit Graph

10 Commits

Author SHA1 Message Date
yeka 0c390aad59 Add encryption method in test 2016-10-16 22:06:07 +07:00
yeka 00f9f9dae9 Add encrypt & decrypt using zip standard encryption 2016-10-16 21:28:36 +07:00
yeka b64137d021 Selectable Encryption Method 2016-10-16 20:47:17 +07:00
alexmullins e1460042c2 Clean up the API and writer code.
Added an Example in documentation for code usage.
Cleaned up documentation and README.txt.
2015-12-03 04:44:20 -06:00
alexmullins dff173efe5 Add password protected writing 2015-12-02 00:58:01 -06:00
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 246ebb4124 Add tests to check for AE-1 CRC and Auth failures. 2015-11-26 18:20:29 -06:00
alexmullins 8d81f262c6 Setup ground work for streaming/buffered reading.
Buffered reading is recommended as it will fully
authenticate the ciphertext before sending any data
to be decrypted. Streaming authentication is only
recommended if: 1. you buffer the data yourself
and wait for authentication before streaming to another
source such as the network, or 2. you just don't
care about authenticating unknown ciphertext before use :).
2015-11-06 00:50:54 -06:00
alexmullins fb959e1749 move all password tests to crypto_test.go 2015-11-05 23:13:02 -06:00