fixed cryptanalyze, hope it's correct.