BCrypt.Net.Test.TestBCrypt.TestGenerateSaltWithWorkFactor C# (CSharp) Method

TestGenerateSaltWithWorkFactor() private method

private TestGenerateSaltWithWorkFactor ( ) : void
return void
        public void TestGenerateSaltWithWorkFactor()
        {
            Trace.Write("BCrypt.GenerateSalt(log_rounds):");
            for (int i = 4; i <= 12; i++)
            {
                Trace.Write(" " + i + ":");
                for (int j = 0; j < _TestVectors.Length / 3; j++)
                {
                    string plain = _TestVectors[j, 0];
                    string salt = BCrypt.GenerateSalt(i);
                    string hashed1 = BCrypt.HashPassword(plain, salt);
                    string hashed2 = BCrypt.HashPassword(plain, hashed1);
                    Assert.Equal(hashed1, hashed2);
                    Trace.Write(".");
                }
            }
            Trace.WriteLine("");
        }