def getCiphers(filename, index, range=-1):
    """Returns a list of ciphers of encrypted data. Index is need for column specification
       Range is by default (-1), which implies that all ciphers from the column will be listed.
       If specified by a list, only ID's within the list will be considered."""
    if index > 0:
        CipherList = []
        with open(filename, 'rb') as f:
            next(f)
            if range == -1:
                for line in f:
                    CipherList.append((int(line.split()[index]), int(line.
                        split()[0])))
            else:
                for line in f:
                    if int(line.split(None, 1)[0]) in range:
                        CipherList.append((int(line.split()[index]), int(
                            line.split()[0])))
        return CipherList
    else:
        print('illegal index')
