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

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