Encrypts a message.

Namespace:  Rebex.Mail
Assembly:  Rebex.Mail (in Rebex.Mail.dll)

Syntax

Visual Basic
Public Sub Encrypt ( _
	encryptionParameters As MailEncryptionParameters, _
	recipients As IEnumerable(Of Certificate) _
)
C#
public void Encrypt(
	MailEncryptionParameters encryptionParameters,
	IEnumerable<Certificate> recipients
)

Parameters

encryptionParameters
Type: Rebex.Mail..::..MailEncryptionParameters
Encryption parameters (to specify RSAES-OAEP parameters). Can be null (for PKCS #1).
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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also