def __init__(self, username, password):
    Srp.__init__(self)
    self.username = username
    self.salt = SrpServer._create_salt()
    self.password = password
    self.verifier = self._get_verifier()
    self.b = self.generate_private_key()
    k = self._calculate_k()
    g_b = pow(self.g, self.b, self.n)
    self.B = (((k * self.verifier) + g_b) % self.n)
    self.A = None
def __init__(self, username, password):
    Srp.__init__(self)
    self.username = username
    self.salt = SrpServer._create_salt()
    self.password = password
    self.verifier = self._get_verifier()
    self.b = self.generate_private_key()
    k = self._calculate_k()
    g_b = pow(self.g, self.b, self.n)
    self.B = (((k * self.verifier) + g_b) % self.n)
    self.A = None