mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Create password protected archives #37
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sepehr1014 on GitHub (May 31, 2015).
How can we set password when creating archives?
@sepehr1014 commented on GitHub (Jun 18, 2015):
If this can't be done, can you point out which parts need to be modified in order to implement this feature?
@sepehr1014 commented on GitHub (Jul 7, 2015):
@adamhathcock It seems this project is not actively maintained. We're working on a big project and we had plans to use SharpCompress as part of it ...
@adamhathcock commented on GitHub (Jul 7, 2015):
I'm still here but I'm not actively working on it. Others have contributed and asked questions and I try to answer them. However, my focus is elsewhere at the moment.
As far as creating passwords, you'd probably want to modify the WriterFactory, as a starting point, to take the password. Then implement it on ZipWriter or other writers. Then the ArchiveFactory would do the same.
@alex4998 commented on GitHub (Sep 23, 2016):
I just reviewed the code. As far as I understand it is a matter of using PkwareTraditionalCryptoStream in the streams chain for writing data. It is, of course, if that class is fully implemented for encryption. I see this question was asked long ago. I need this too. Did somebody already did it or started doing it? I'm thinking about implementing this part but I would like to avoid double work and reuse what's already done but not added to the project. Please, let me know.
@adamhathcock commented on GitHub (Sep 23, 2016):
I doubt anyone is working on it. Please do and submit a pull request :)
@dos-ise commented on GitHub (Jul 17, 2017):
Has there been any progress on this? I would need this feature....
@adamhathcock commented on GitHub (Jul 17, 2017):
You’re welcome to add it yourself.
@dos-ise commented on GitHub (Jul 17, 2017):
I have tried something. But having problems with the encryption data :/
You can take a look at it under -> Commit 2482769e
@dos-ise commented on GitHub (Jul 26, 2017):
Did you take a look at my commit?
@adamhathcock commented on GitHub (Jul 26, 2017):
I didn't because I'm on vacation and I have no idea how to view whatever you're referring to.
Please, make a pull request if you have something for review.
@dos-ise commented on GitHub (Jul 27, 2017):
Forget that :)
@adamhathcock commented on GitHub (Jul 27, 2017):
Sorry, I would really like a diff. Pull Requests do work with a proper fork of the repo.
@dos-ise commented on GitHub (Jul 27, 2017):
https://github.com/adamhathcock/sharpcompress/pull/284
now it has worked ^^
I'm just stupid :)
@Looooong commented on GitHub (Mar 18, 2021):
Is there any problem on the zip_encryption branch? Perhaps I can look into it.