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

TestGenerateSaltWithMaxWorkFactor() private method

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