public override bool Equals(object?obj)
 {
     return(obj is SnapshotReference other &&
            Salt.SequenceEqual(other.Salt) &&
            Iterations == other.Iterations &&
            ContentUris.SequenceEqual(other.ContentUris));
 }
Esempio n. 2
0
 public bool Equals(SecuredPassword comparison)
 {
     if (Hash.SequenceEqual(comparison.Hash) && Salt.SequenceEqual(comparison.Salt))
     {
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
 protected bool Equals(CiphertextDto other)
 {
     return(Id.Equals(other.Id) &&
            Ciphertext.SequenceEqual(other.Ciphertext) &&
            InitializationVector.SequenceEqual(other.InitializationVector) &&
            Salt.SequenceEqual(other.Salt) &&
            Deleted.Equals(other.Deleted));
 }
Esempio n. 4
0
 protected bool Equals(HashedPassword other)
 {
     if (ReferenceEquals(null, this))
     {
         return(ReferenceEquals(null, other));
     }
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(Hash.SequenceEqual(other.Hash) &&
            Salt.SequenceEqual(other.Salt) &&
            Iterations == other.Iterations &&
            Equals(Prf, other.Prf));
 }
Esempio n. 5
0
        public bool Equals(HashedPassword other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return((Hash?.SequenceEqual(other.Hash) ?? false) &&
                   (Salt?.SequenceEqual(other.Salt) ?? false) &&
                   IterationCount == other.IterationCount);
        }