27 ms·
The problems in set 1 are a little different, though. You get the important hint (which the author was missing) to use letter frequencies for a fitness function
by pvg 10y ago
The problems in set 1 are a little different, though. You get the important hint (which the author was missing) to use letter frequencies for a fitness function. But the cryptopals set 1 ciphers have tiny keyspaces that are easily searched exhaustively - a substitution cipher in general doesn't. To solve the author's problem you need to re-invent something like stochastic hill climbing.