Table of Contents

Method HashPassword

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

HashPassword(string, PasswordEvidence)

Calculates the password hash.

public static string HashPassword(string username, PasswordEvidence password)

Parameters

username string

The username.

password PasswordEvidence

The password.

Returns

string

The password hash.

HashPassword(string, string)

Calculates the password hash.

public static string HashPassword(string username, string password)

Parameters

username string

The username.

password string

The password.

Returns

string

The password hash.