Encrypts a message.
Namespace:
Rebex.Mail
Assembly:
Rebex.Mail (in Rebex.Mail.dll)
Syntax
Visual Basic |
---|
Public Sub Encrypt ( _ encryptionParameters As MailEncryptionParameters, _ ParamArray recipients As Certificate() _ ) |
C# |
---|
public void Encrypt( MailEncryptionParameters encryptionParameters, params Certificate[] recipients ) |
Parameters
- encryptionParameters
- Type: Rebex.Mail..::..MailEncryptionParameters
Encryption parameters (to specify RSAES-OAEP parameters). Can be null (for PKCS #1).
- recipients
- Type: array<Rebex.Security.Certificates..::..Certificate>[]()[][]
The list of recipients' certificates. At least one must be specified.
Remarks
Encrypting the message will make its content inaccessible until it is decrypted.