SignOptions.DecryptionPassword

SignOptions DecryptionPassword property. The password to decrypt source document. Default value is empty string.

SignOptions.DecryptionPassword property

The password to decrypt source document. Default value is empty string.

public string DecryptionPassword { get; set; }

Remarks

If OOXML document is encrypted, you should provide decryption password to decrypt source document before it will be signed. This is not required for documents in binary DOC format.

Examples

Demonstrates how to sign password encrypted document.

CertificateHolder certHolder = CertificateHolder.Create(MyDir + "morzal.pfx", "aw");

SignOptions signOptions = new SignOptions();
signOptions.DecryptionPassword = "wordize";

Signer.Sign(MyDir + "Simple.docx", ArtifactsDir + "Signed.DecryptionPassword.docx", certHolder, signOptions);

See Also