encryption string/unicode bug

Bug #242756 reported by Mathieu Fenniak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyPdf
Confirmed
Undecided
Unassigned

Bug Description

Originally reported via e-mail from Geoff Gerrietts:

I had to make a "fix" to pyPdf -- on lines 1344 and 1444 of pdf.py I had to change id1_entry to id1_entry.original_bytes.

For some of my PDFs, md5 was trying to convert unicode to ascii and failing during this step of the process.

This seems to have corrected my problem, but there's some lingering suspicion that I have not discovered all the places this needs attention.

Revision history for this message
Emanuele Rocca (ema) wrote :

Hello Mathieu,

I can confirm that changing m.update(id1_entry) with m.update(id1_entry.original_bytes) in _alg32 fixes the problem for my encrypted files as well.

Changed in pypdf:
status: New → Confirmed
Revision history for this message
KLEIN Stéphane (stephane-harobed) wrote :

This my patch to fix this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.