On 2013-11-29, dam6923 . wrote: > I'm looking for the encryption that Windows XP provides for ZIP files. > I believe it's the old, lame, encryption. Is that correct?
TBH, I have no idea. You may be able to tell by looking at the general purpose bit of an encrypted entry. Bit 0 would be set when encryption is used and bit 6 would not be set for old crypto if I read the spec correctly. > Right now I'm working with http://sevenzipjbind.sourceforge.net/ and > it fits the bill but is a bit clunky. Looks like it was using the 7Zip C++ libs under the covers so likely doesn't implement the crypto stuff itself. Hmm, I just saw Bear Gilles had attached some example code that does traditional PKWare encryption to COMPRESS-88 two years ago. Somehow I forgot about it even though I commented on it. Maybe it is about time to incorporate it without doing the "proper API" first - no promises, though. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org