Encrypts a message.
Namespace:
Rebex.Mail
Assembly:
Rebex.Mail (in Rebex.Mail.dll)
Syntax
Visual Basic |
---|
Public Sub Encrypt ( _ encryptionAlgorithm As MailEncryptionAlgorithm, _ ParamArray recipients As Certificate() _ ) |
C# |
---|
public void Encrypt( MailEncryptionAlgorithm encryptionAlgorithm, params Certificate[] recipients ) |
Parameters
- encryptionAlgorithm
- Type: Rebex.Mail..::..MailEncryptionAlgorithm
An encryption algorithm to use.
- 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.