signature_value property
DigitalSignature.signature_value property
Gets an array of bytes representing a signature value.
@property
def signature_value(self) -> bytes:
...
Examples
Shows how to get a digital signature value from a digitally signed document.
doc = aw.Document(MY_DIR + 'Digitally signed.docx')
for digital_signature in doc.digital_signatures:
signature_value = base64.b64encode(digital_signature.signature_value).decode('utf-8')
break
self.assertEqual('K1cVLLg2kbJRAzT5WK+m++G8eEO+l7S+5ENdjMxxTXkFzGUfvwxREuJdSFj9AbD' + 'MhnGvDURv9KEhC25DDF1al8NRVR71TF3CjHVZXpYu7edQS5/yLw/k5CiFZzCp1+MmhOdYPcVO+Fm' + '+9fKr2iNLeyYB+fgEeZHfTqTFM2WwAqo=', signature_value)
See Also
- module aspose.words.digitalsignatures
- class DigitalSignature