Table of Contents

Method Encrypt

Namespace
MongoDB.Driver.Encryption
Assembly
MongoDB.Driver.dll

Encrypt(BsonValue, EncryptOptions, CancellationToken)

Encrypts the specified value.

public BsonBinaryData Encrypt(BsonValue value, EncryptOptions encryptOptions, CancellationToken cancellationToken = default)

Parameters

value BsonValue

The value.

encryptOptions EncryptOptions

The encrypt options.

cancellationToken CancellationToken

The cancellation token.

Returns

BsonBinaryData

The encrypted value.