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