public bool VerifyAccessKey(AccessKey key, string accessKey) { var result = _hasher.VerifyHashedPassword(key.PId.ToString(), accessKey, key.JsonSerialize()); return result != PasswordVerificationResult.Failed; }
public string GenerateAccessKey(AccessKey key) { return _hasher.HashPassword(key.PId.ToString(), key.JsonSerialize()); }