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

TestInternationalChars() private method

private TestInternationalChars ( ) : void
return void
        public void TestInternationalChars()
        {
            Trace.Write("BCrypt.HashPassword w/ international chars: ");
            string pw1 = "ππππππππ";
            string pw2 = "????????";

            string h1 = BCrypt.HashPassword(pw1, BCrypt.GenerateSalt());
            Assert.False(BCrypt.Verify(pw2, h1));
            Trace.Write(".");

            string h2 = BCrypt.HashPassword(pw2, BCrypt.GenerateSalt());
            Assert.False(BCrypt.Verify(pw1, h2));
            Trace.Write(".");
            Trace.WriteLine("");
        }
    }