From d851e4060f433bb8a52326492f42c9f8a64cf2cd Mon Sep 17 00:00:00 2001 From: yeka Date: Sun, 16 Oct 2016 22:06:07 +0700 Subject: [PATCH] Add encryption method in test --- README.txt | 3 +++ crypto_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 2134a00..3984ca4 100644 --- a/README.txt +++ b/README.txt @@ -1,3 +1,6 @@ +This fork add support for Standard Zip Encryption. +https://github.com/yeka/zip + This is a fork of the Go archive/zip package to add support for reading/writing password protected .zip files. Only supports Winzip's AES extension: http://www.winzip.com/aes_info.htm. diff --git a/crypto_test.go b/crypto_test.go index 7f86994..7ff8ed8 100644 --- a/crypto_test.go +++ b/crypto_test.go @@ -175,7 +175,7 @@ func TestPasswordWriteSimple(t *testing.T) { contents := []byte("Hello World") conLen := len(contents) - for _, enc := range []EncryptionMethod{AES128Encryption, AES192Encryption, AES256Encryption} { + for _, enc := range []EncryptionMethod{ZipStandardEncryption, AES128Encryption, AES192Encryption, AES256Encryption} { raw := new(bytes.Buffer) zipw := NewWriter(raw) w, err := zipw.Encrypt("hello.txt", "golang", enc)