[issue36573] zipfile zipfile.BadZipFile: Bad CRC-32 for file '11_02_2019.pdf'

2019-04-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is how the weak encryption in ZIP files work. In 255 cases from 256 the wrong password can be detected earlier (this make the encryption just weaker). But it 1 case of 256 this check is passed and you will get either an error of mismatched CRC, or the

[issue36573] zipfile zipfile.BadZipFile: Bad CRC-32 for file '11_02_2019.pdf'

2019-04-09 Thread Jozef Cernak
Jozef Cernak added the comment: Hi, I changed zipped file password to the new string "RRJBB" that is a combination after RRJBA to see what will happen. At the input combination KWFEA I got the message: KWFEA Traceback (most recent call last): File "p33.py", line 54, in zf.extractall(

[issue36573] zipfile zipfile.BadZipFile: Bad CRC-32 for file '11_02_2019.pdf'

2019-04-09 Thread Jozef Cernak
Jozef Cernak added the comment: Ok, however behaviur is detected after several attempts i.e. behaviour is not regular but depends on the previous history, how or how many times functions was called. I think such behaviur should indicate that function store previous data, i.e. history. Best rega

[issue36573] zipfile zipfile.BadZipFile: Bad CRC-32 for file '11_02_2019.pdf'

2019-04-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you try to extract the file using an invalid password, it is an expected behavior. -- ___ Python tracker ___ __

[issue36573] zipfile zipfile.BadZipFile: Bad CRC-32 for file '11_02_2019.pdf'

2019-04-09 Thread Jozef Cernak
Jozef Cernak added the comment: Dear Serhiy, in the case of correct password, the program works well: OACD PACD QACD RACD SACD TACD UACD VACD WACD XACD YACD ZACD ABCD Password found:ABCD for five characters: RRJBA Traceback (most recent call last): File "p33.py", line 54, in zf.extrac

[issue36573] zipfile zipfile.BadZipFile: Bad CRC-32 for file '11_02_2019.pdf'

2019-04-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you get an error when try to extract the file using the valid password? -- ___ Python tracker ___ __

[issue36573] zipfile zipfile.BadZipFile: Bad CRC-32 for file '11_02_2019.pdf'

2019-04-09 Thread SilentGhost
Change by SilentGhost : -- nosy: +alanmcintyre, serhiy.storchaka, twouters type: crash -> behavior ___ Python tracker ___ ___ Python

[issue36573] zipfile zipfile.BadZipFile: Bad CRC-32 for file '11_02_2019.pdf'

2019-04-09 Thread Jozef Cernak
New submission from Jozef Cernak : Hi, in the short program, that works well for password of 4 character, when I change password length I got this error (parameter MAXD) Traceback (most recent call last): File "p33.py", line 54, in zf.extractall( pwd=password.encode('cp850','replace')