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