public override void Execute() { var factors = new SRPFactors(_settings.SRP.g, _settings.SRP.k); Console.WriteLine($"SRP Factors:\ng: {factors.g}\nk: {factors.k}\nN: {factors.N}\n"); var client = new SRPClient(factors, "user", "password"); var server = new SRPServer(factors); client.Connect(server); client.Registration(); client.Authentication(); Console.WriteLine("Success!"); }
public void Connect(SRPServer server) { this.server = server; }