Пример #1
0
def getTAfileStringsList(filePath):
    cFiles = []
    for file in textoperations.getFilesInFolder(filePath):
        if(file[-12:-8] == "text"):
            cFiles.append(file)
    cipherStrings = []
    for fileName in cFiles:
        cipherStrings.append(textoperations.getFileAsString(fileName))
    return cipherStrings
Пример #2
0
def multicrack(filePath, maxKey, nrOfKeys, nrOfCandidateSolutions):
    for file in textoperations.getFilesInFolder(filePath):
        start_time = time.time()
        prettySolutionPrinter(getKeyInFile(file, maxKey, nrOfKeys, nrOfCandidateSolutions), file)
        print("--- %s seconds ---" % (time.time() - start_time))