encrypt Method
Encrypts the message.
Syntax
def encrypt() -> None: ...
Remarks
This method encrypts the input message in a PKCS encoded envelope with all of the recipient certificates specified in the message_recipients properties.
Please note that the message headers, including the Sender, Recipient(s), and Subject, are not encrypted. If this is sensitive information, consider including these headers in the message body as a MIME entity, and providing other headers for the S/MIME wrapper.