gat3way/hashkill — pull request #20 by kholia (2013-01-20 10:06:08+00:00)
Title: Fixes needed to get pdf format working with JtR test vectors

These fixes are needed to get pdf format working with JtR test vectors. I misunderstood how hex2str worked earlier. Hopefully this patch fixes all the existing problems. Also, we now reject truncated hashes instead of crashing.

Please review and pull.

Test Vectors: https://github.com/magnumripper/JohnTheRipper/blob/unstable-jumbo/src/unused/pdfdump

Passwords used are: openwall, testpassword, password

Passwords are embedded in the file names themselves.