How to read & write standard password encrypted ZIP files?

R

Robert

Is it possible to write & read standard password encrypted ZIP files
easily (using zipfile.ZipFile?)

Robert
 
J

Josiah Carlson

Is it possible to write & read standard password encrypted ZIP files
easily (using zipfile.ZipFile?)

It may be supported via some undocumented method.

One thing you should be aware of, is that ZIP files have a known
cryptographic attack for >= 3 files encrypted with the same password in
a zip file. When there are more than 3 files in a zip file, all
encrypted with the same password, only 15 bits of the password is
required to decrypt the archive, then (I believe) recover the original
password.

Generally, you would be better off using Python to create the original
archive (without encryption), then use some encryption method to secure
it. I hear that mxCrypto is a very spiffy library for Python cryptography.

- Josiah
 
R

Robert

Is it possible to write & read standard password encrypted ZIP files
It may be supported via some undocumented method.

any more information on that?
One thing you should be aware of, is that ZIP files have a known
cryptographic attack for >= 3 files encrypted with the same password in
a zip file. When there are more than 3 files in a zip file, all
encrypted with the same password, only 15 bits of the password is
required to decrypt the archive, then (I believe) recover the original
password.

Generally, you would be better off using Python to create the original
archive (without encryption), then use some encryption method to secure
it. I hear that mxCrypto is a very spiffy library for Python cryptography.

is there a secure encrypted format, that could be read also by common
tools like WinZIP, WinRAR ?

Robert
 
P

Paul Rubin

is there a secure encrypted format, that could be read also by common
tools like WinZIP, WinRAR ?

There's a proposal for better encryption in zip files, but I don't
think it's widely supported yet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top