def getModFromCipher(key: int, cipher: int, rest: int):
    """
    get the base from the sipher, the key and the rest values

    :param key: a temporary integer key
    :param cipher: the ciphered base retreived from the file
    :param rest: the rest of the equation (see Utilities:generateCipher)
    :return: a integer base
    """
    base = (key-rest) // cipher
    return base