public bool VerifyHashedPassword(string hashedPassword, string password)
{
if (hashedPassword.Contains(PasswordHashingIterationCountSeparator))
{
var parts = hashedPassword.Split(PasswordHashingIterationCountSeparator);
if (parts.Length != 2) return false;
int count = DecodeIterations(parts[0]);
if (count <= 0) return false;
hashedPassword = parts[1];
return Crypto.VerifyHashedPassword(hashedPassword, password, count);
}
else
{
return Crypto.VerifyHashedPassword(hashedPassword, password);
}
}