Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compression & Zip Recommendations 2

Status
Not open for further replies.

jasonp45

Programmer
Aug 23, 2001
212
US
I receive Zip files from data sources, some of which are encrypted with a password.

I can shell out to the WinZip command-line program to unzip these. However, I'd prefer some native C Sharp class/DLL to handle this functionality if possible.

From googling it appears that .NET can only handle GZ natively - is this correct? I found some open source C Sharp library that handles all manner of compressed files and it works well...but it won't work on files encrypted by WinZip with AES.

I would like to know what my options are and what others use to handle encrypted zip files. And is there a way to programmatically automate GPG decryption? (Sorry, separate question I know!)

Thanks.
 
7zip is an open source program, you might want to take a look at the code. It can handle AES encrypted archives. I switched to 7zip from winrar because it is open source, the only problem I've had is examining .iso files, which it doesn't do well. It could be a starting place for you to look at the source, remember to look at the licenses before using their code if you do
 
Actually, i take that back about iso's because i have not unpacked any yet, so disregard my statement on .iso
 
I've had good results from this one:


I've managed to put wrapper functions around PGP command line calls (in VB, but I imagine its just as easy in C#), but that is a pretty pricey license.

Looks as if someone's done the same thing with GPG over on code project:


Hope this helps,

Alex

[small]----signature below----[/small]
Majority rule don't work in mental institutions

My Crummy Web Page
 
That GPG project is awesome - thanks! And yeah SharpZipLib is the library I'm working with...it's very nice but can't handle Zip AES encryption.

I use 7zip on my computer...I'll take a look at their command-line stuff or API if I can bundle that in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top