Beispiel #1
0
 public void TestCreateHashFromString()
 {
     using (PasswordHash pwd1 = new PasswordHash(TEST_PASSWORD))
         using (PasswordHash pwd2 = PasswordHash.FromString(pwd1.ToString()))
         {
             Assert.AreEqual(pwd1, pwd2);
             Assert.AreEqual(pwd1.Salt.ToArray(), pwd2.Salt.ToArray());
             Assert.AreEqual(pwd1.ToArray(), pwd2.ToArray());
         }
 }