Click or drag to resize
GDSecureMimeEncoderEncrypt Method
Encrypts the stream using the recipient's public key.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public void Encrypt(
	IList<GDSecureMimeCertificate> recipientCertificates,
	GDSMIMECipher cipher
)

Parameters

recipientCertificates
Type: System.Collections.GenericIListGDSecureMimeCertificate
List of certificates belonging to the intended recipients of the message. Only these recipients will be able to decrypt it using their private key. If the sender wishes to review their message after being encrypted, their certificate may also be included.
cipher
Type: GDGDSMIMECipher
The cipher to use for encryption.
Remarks

This method is lazy. After execution it stores operation in queue which is processed by FlushAsync method.

See Also