Exemple #1
0
        static public bool Verify(this StretchedHash item, byte[] b)
        {
            if (item.Equals(new StretchedHash(b, item)))
            {
                return(true);
            }

            return(false);
        }
Exemple #2
0
 public StretchedHash(string b, StretchedHash s) : this(b.ToUnicodeBytes(), s)
 {
 }
Exemple #3
0
 public StretchedHash(byte[] b, StretchedHash s) : this(b, s.GetSize(), s.GetSalt(), s.GetIterations())
 {
 }
Exemple #4
0
 static public void Write(this BinaryWriter item, StretchedHash value)
 {
     item.Write(value.GetHash());
     item.Write(value.GetSalt());
     item.Write(value.GetIterations());
 }