I need an algorithm (any programming language) to test the vitality with an hill climbing algorithm for breaking a cipher for a crypto challenge. The algorithm should test how likely it is that an random-decryption (has no spaces) is an English text (also giving points for yet incomplete words!) or just a random sequence of characters.
I tried it with several algorithms I developed but they were not so good.
My research:
An enigma M4 crypto project ( http://www.bytereef.org/m4_project.html ) uses the Sinkov statistics, which I want to use, too.
The only thing I found was a document of «quebra -pedra», a Java framework that includes the Sinkov log-weight analysis I am searching for.
http://www.google.com/m?client=ms-android-samsung&source=android-home#q=Quebra-pedra+framework+java
But I have not found where to download the framework. Also I have not found any implementation or description of the Sinkov test.
I would be glad for any hints. Thanks.