Table of Contents

Enum MqlHashAlgorithm

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Specifies the hash algorithm for use with Hash<TValue>(TValue, MqlHashAlgorithm) and HexHash<TValue>(TValue, MqlHashAlgorithm) methods.

public enum MqlHashAlgorithm

Fields

Undefined = 0

Represents an undefined or default state for the MqlHashAlgorithm enumeration. This value indicates that no specific hash algorithm has been selected and serves as the default value of the enum.

[Obsolete("MD5 is deprecated and only supported for legacy purposes.")] MD5 = 1

Represents the MD5 hashing algorithm. This algorithm is considered deprecated and is only included to support legacy use cases.

SHA256 = 2

Specifies the SHA-256 hash algorithm.

XXH64 = 3

Represents the XXH64 hash algorithm.