Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AES encryption & decryption. #656

Closed
wants to merge 19 commits into from
Closed

Add support for AES encryption & decryption. #656

wants to merge 19 commits into from

Conversation

xqdoo00o
Copy link
Contributor

@xqdoo00o xqdoo00o commented Mar 11, 2020

It's just basic code, but surely work for zip aes decryption & encryption. I'm not sure the code flow is enough good, and the 3rd library(sjcl) may need async require(or not, min.js only 20kb bigger).
But if the file size large than DEFAULT_BLOCK_SIZE, I think there is a bug , because the data was split.

New efficient code in #696

@xqdoo00o xqdoo00o changed the title Add support for AES decryption Add support for AES encryption & decryption. Apr 23, 2020
@xqdoo00o
Copy link
Contributor Author

Hi @Stuk, could you please review this?

Copy link
Owner

@Stuk Stuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

Would you mind doing the following:

  1. add some tests and test files added to prove that it works?
  2. make sure the code formatting follows the existing code (spaces between punctuation etc.). I've added a couple of comments but I see more that needs to follow.
  3. report on the changes in filesize for jszip.min.js with and without gzip compression? If it increases too much we should split this out into an optional add on.

lib/zipEntry.js Outdated Show resolved Hide resolved
lib/zipEntry.js Outdated Show resolved Hide resolved
lib/zipEntry.js Outdated Show resolved Hide resolved
xqdoo00o and others added 3 commits April 26, 2020 08:52
@xqdoo00o
Copy link
Contributor Author

xqdoo00o commented Apr 26, 2020

Hi @Stuk , I tested.
origin min.js 94kb -- 27kb gziped
withSJCL min.js 117KB -- 34kb gziped
New commit include test & format fix has been pushed.

@xqdoo00o xqdoo00o requested a review from Stuk April 27, 2020 12:17
@xqdoo00o xqdoo00o mentioned this pull request Apr 28, 2020
lib/stream/AesWorker.js Outdated Show resolved Hide resolved
lib/ctrGladman.js Outdated Show resolved Hide resolved
lib/ctrGladman.js Outdated Show resolved Hide resolved
@xqdoo00o xqdoo00o marked this pull request as draft May 14, 2020 12:07
@xqdoo00o xqdoo00o closed this May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants