X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=cipherbreak.py;fp=cipherbreak.py;h=de605d34d67b49e214cab7d280b1eb19cc76b8bf;hb=91077b7eb1e7d7caa28732487638a37140d66bf7;hp=a70e83512dddb09123b7937dec9a1e72af5f7cbd;hpb=18fe908b15b6a5b975997bb1a972ca8106690230;p=cipher-tools.git diff --git a/cipherbreak.py b/cipherbreak.py index a70e835..de605d3 100644 --- a/cipherbreak.py +++ b/cipherbreak.py @@ -379,7 +379,7 @@ def simulated_annealing_break_worker(message, plain_alphabet, cipher_alphabet, logger.debug('Simulated annealing: iteration {}, temperature {}, ' 'current alphabet {}, current_fitness {}, ' 'best_plaintext {}'.format(i, temperature, current_alphabet, - current_fitness, best_plaintext[:50])) + current_fitness, plaintext[:50])) temperature = max(temperature - dt, 0.001) return best_alphabet, best_fitness # current_alphabet, current_fitness