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
BsonValueThe value.
encryptOptions
EncryptOptionsThe encrypt options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- BsonBinaryData
The encrypted value.