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 SRPClient(SRPFactors factors, string username, string password) { this.factors = factors; this.username = username; this.password = password; }
public SRPServer(SRPFactors factors) { this.factors = factors; }