Skip to content

Get hash and hash algorithm of a signed PDF #46

Discussion options

You must be logged in to vote

Hi Frederico,

There are a number of different aspects to your question, so allow me to break it down a little further.

First, if you're the one calling pyHanko to sign PDFs: you can actually control the digest function used via the PdfSignatureMetadata object you pass into sign_pdf. Unless the document has seed values on its signature fields, that setting will be respected. Seed values are rarely used in the wild these days, so chances are you won't ever have to worry about those.

The sign_pdf function is pretty much the most high-level API pyHanko exposes, so getting access to the internals from there will indeed be difficult. You could get access to all the information you want by hooki…

Replies: 10 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MatthiasValvekens
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #31 on October 26, 2021 21:03.