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

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