sharpcompress
sharpcompress copied to clipboard
Create password protected archives
How can we set password when creating archives?
If this can't be done, can you point out which parts need to be modified in order to implement this feature?
@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 ...
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.
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.
I doubt anyone is working on it. Please do and submit a pull request :)
Has there been any progress on this? I would need this feature....
You’re welcome to add it yourself.
I have tried something. But having problems with the encryption data :/ You can take a look at it under -> Commit 2482769e
Did you take a look at my commit?
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.
Forget that :)
Sorry, I would really like a diff. Pull Requests do work with a proper fork of the repo.
https://github.com/adamhathcock/sharpcompress/pull/284
now it has worked ^^ I'm just stupid :)
Is there any problem on the zip_encryption branch? Perhaps I can look into it.