def _calculate_x(self) -> int:
    i = ((self.username + ':') + self.password).encode()
    hash_instance = self.h()
    hash_instance.update(i)
    hash_value = hash_instance.digest()
    hash_instance = self.h()
    hash_instance.update(Srp.to_byte_array(self.salt))
    hash_instance.update(hash_value)
    return int.from_bytes(hash_instance.digest(), 'big')
def _calculate_x(self) -> int:
    i = ((self.username + ':') + self.password).encode()
    hash_instance = self.h()
    hash_instance.update(i)
    hash_value = hash_instance.digest()
    hash_instance = self.h()
    hash_instance.update(Srp.to_byte_array(self.salt))
    hash_instance.update(hash_value)
    return int.from_bytes(hash_instance.digest(), 'big')