[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Kira Erethon
Kira Erethon added the comment: I'm a newbie in python and tried this in order to learn.I created all the zip files (first created a .txt file and zipped it with a password), so I know the file inside the zip is encrypted ( ofc I know the password too). Tried this with different .txt

[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Kira Erethon
Kira Erethon added the comment: I'm catching all errors and exceptions and zipfile still decompresses it, that's what I've been trying to tell you. I don't face my original problem anymore, I'm catching that exception, now zipfile considers some passwords to be corre

[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Kira Erethon
Changes by Kira Erethon : -- components: +Library (Lib) -Extension Modules ___ Python tracker <http://bugs.python.org/issue10876> ___ ___ Python-bugs-list mailin

[issue10876] Zipfile sometimes considers a false password to be correct

2011-01-18 Thread Kira Erethon
Kira Erethon added the comment: Sorry to re-open this, but I consider it an important bug. Tried it in 3.1 also and it's still there. To sum up what's happening, zipfile sometimes considers a false password to be correct and proceeds with decrypting the file. Is there a workarou

[issue10876] Zipfile crashes when zip password is set to 610/844/numerous other numbers

2011-01-09 Thread Kira Erethon
Kira Erethon added the comment: Update, tried this in another machine of mine, same exact code and this time it crashes at 68 -- title: Zipfile crashes when zip password is set to 610/844 -> Zipfile crashes when zip password is set to 610/844/numerous other numb

[issue10876] Zipfile crashes when zip password is set to 610/844

2011-01-09 Thread Kira Erethon
Changes by Kira Erethon : -- title: Zipfile crashes when zip password is set to 610 -> Zipfile crashes when zip password is set to 610/844 ___ Python tracker <http://bugs.python.org/issu

[issue10876] Zipfile crashes when zip password is set to 610

2011-01-09 Thread Kira Erethon
Kira Erethon added the comment: Ok, I tried recreating the bug and found out that I couldn't. Originally this happened when I tried to find the password of a zip file through a dictionary attack. The code I used is this: import zipfile zfile=raw_input("Please input zip

[issue10876] Zipfile crashes when zip password is set to 610

2011-01-09 Thread Kira Erethon
Changes by Kira Erethon : -- title: Zipfile crashes when zip password is 610 -> Zipfile crashes when zip password is set to 610 ___ Python tracker <http://bugs.python.org/issu

[issue10876] Zipfile crashes when zip password is 610

2011-01-09 Thread Kira Erethon
New submission from Kira Erethon : Was playing around with Zipfile and passwords in zip files and I noticed that when the password on zipfile.setpassword(pwd) was set 610, the program crashed with the following errors File "/usr/lib/python2.6/zipfile.py", line 938, in