Excluding Metadata When Generating A Pdf File Checksum In Python
I intend to generate a checksum on the file then I put the checksum as metadata of the file itself. However, the problem I faced was that the checksum generated before and after th
Solution 1:
You could do it how the NIX package manager does it. You insert 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' as the hash, checksum the file and then replace that with the real hash. When the file is checked you replace the hash with the X's and hash the file.
But I wouldn't do this with PDFs. For PDFs it would be better to sign them.
Post a Comment for "Excluding Metadata When Generating A Pdf File Checksum In Python"