コード例 #1
0
 public bool VerifyAccessKey(AccessKey key, string accessKey)
 {
    var result = _hasher.VerifyHashedPassword(key.PId.ToString(), accessKey, key.JsonSerialize());
     return result != PasswordVerificationResult.Failed;
 }
コード例 #2
0
 public string GenerateAccessKey(AccessKey key)
 {
     return _hasher.HashPassword(key.PId.ToString(), key.JsonSerialize());
 }