question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] Encryption

See original GitHub issue

Why is your feature relevant to client-zip? Encryption is on client-zip roadmap, but the author does not see use case for it. Therefore, I would like to add my use case.

Describe the solution you’d like I am running workers to backup data from cloud services to another, as zip archives. Certain users have requested for their backups to be encrypted, since they may contain personal data. Currently, I have to fetch data locally, zip it with encryption, and then upload again. It would be nice to be able to use client-zip to do it all in one step.

Describe alternatives you’ve considered There is not really a JS library that does encryption for zip, so the alternative is really just to download data all at once, zip it with encryption, and upload the result.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Touffycommented, May 1, 2022

After studying the spec and searching the Web in vain, I am officially dropping RSA public key encryption. Just in case someone else comes along wanting that feature : sorry, won’t do. I won’t even accept a pull request to add it to client-zip if someone manages to implement it. If your users are advanced enough to use public keys, I suggest you let them encrypt the whole file with PGP instead.

Why not RSA ? I couldn’t find a single open-source implementation, and it’s based on an old Microsoft key format. More importantly, there is practically no zip utility that supports RSA (except the original PKWare Zip program), so even if client-zip could use this encryption, most users would be left unable to ever decrypt the result.

Password-based encryption is still on the table. It’s horribly complicated of course, but it seems to be all there in the spec, and decryption is supported by most programs. I still wouldn’t recommend it because of all the inherent vulnerabilities of passwords, but I’ll do it.

Anyway, “strong” encryption (that is, encryption that can’t be broken in a matter of minutes and doesn’t leak all your metadata) requires the Zip64 format, so this feature will be exclusive to the 2.x branch (and future branches) of client-zip.

0reactions
P-B1101commented, Jul 3, 2022

Take your time. no rush 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Encryption and How Does it Work? - TechTarget
The primary purpose of encryption is to protect the confidentiality of digital data stored on computer systems or transmitted over the internet or...
Read more >
Encryption - Wikipedia
In cryptography, encryption is the process of encoding information. This process converts the original representation of the information, known as plaintext ...
Read more >
Encryption concepts - IBM
Encryption is the process of transforming data into an unintelligible form in ... The following characteristics of encryption create special considerations:.
Read more >
Key Features | Encrypt Document - SutiSoft
SutiSafe encrypts and decrypts documents in all popular formats such as Word, PDF, etc. No Capturing of Personal Details. No personal details are...
Read more >
Device encryption in Windows - Microsoft Support
Learn about BitLocker and your encryption options for Windows. ... Device encryption helps protect your data and it's available on a wide range...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found