Provides simple password based authentication that uses Secure Remote Password.
        public void Test1()
        {
            m_sw.Reset();

            var net = new NetworkStreamSimulator();

            var sa = new SrpServer();
            sa.Users.AddUser("user1", "password1", SrpStrength.Bits1024);

            ThreadPool.QueueUserWorkItem(Client1, net.ClientStream);
            var user = sa.AuthenticateAsServer(net.ServerStream);
            user = sa.AuthenticateAsServer(net.ServerStream);
            if (user == null)
                throw new Exception();

            Thread.Sleep(100);
        }
        public void Test()
        {
            Stopwatch sw = new Stopwatch();
            sw.Start();
            var srp = new SrpServer();
            sw.Stop();
            System.Console.WriteLine(sw.Elapsed.TotalMilliseconds);

            sw.Restart();
            srp.Users.AddUser("user", "password");
            sw.Stop();
            System.Console.WriteLine(sw.Elapsed.TotalMilliseconds);

            sw.Restart();
            srp.Users.AddUser("user2", "password");
            sw.Stop();
            System.Console.WriteLine(sw.Elapsed.TotalMilliseconds);
        }