Click or drag to resize
SecurityHelperVerifyPBKDF2Hash Method
Returns true in case given password matches given PBKDF2 hash.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static bool VerifyPBKDF2Hash(
	string password,
	string hash
)

Parameters

password
Type: SystemString
Password to be hashed and compared with hash.
hash
Type: SystemString
Hash to compare hashed password with.

Return Value

Type: Boolean
True for hashes generated using GetPBKDF2Hash method (for given password).
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when password or hash are null.
See Also