HashHelper.VerifyPassword Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

VerifyPassword(string, string)

Compares a hash of the specified plain text password to a given hash value. Plain text is hashed with the same salt value as the original hash.

public static bool VerifyPassword(string password, string hash)

Parameters

password
string

Plain text password to be verified against the specified hash.

hash
string

Base64 encoded password hash value produced by the HashPassword function.

Returns

bool

If computed hash mathes the specified hash the function the return value is true; otherwise, the function returns false.