GetSignatureContentsHashHex
Digital signatures
Description
Returns the VRI key of a signature: the uppercase-hex SHA-1 over its contents.
Syntax
Delphi
Function TPDFlib.GetSignatureContentsHashHex(Const InputFile, Password, FieldName: WideString): AnsiString;Parameters
| InputFile | The signed PDF. |
|---|---|
| Password | The password to open it, or an empty string. |
| FieldName | A signature field name as reported by the signature enumeration. |
Return values
| Hash | Forty uppercase hex characters. |
|---|---|
| Empty string | The file or the field could not be read. |
Remarks
This is the key an AddPAdESDSSVRI entry is addressed by, so validation material written for the signature can be tied back to it.
The document is read with a shared handle, so this answers while a verifier or viewer already holds the file open.