static public bool Verify(this StretchedHash item, byte[] b) { if (item.Equals(new StretchedHash(b, item))) { return(true); } return(false); }
public StretchedHash(string b, StretchedHash s) : this(b.ToUnicodeBytes(), s) { }
public StretchedHash(byte[] b, StretchedHash s) : this(b, s.GetSize(), s.GetSalt(), s.GetIterations()) { }
static public void Write(this BinaryWriter item, StretchedHash value) { item.Write(value.GetHash()); item.Write(value.GetSalt()); item.Write(value.GetIterations()); }