Welcome Guest [Log In] [Register]
Welcome to Crypto. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Genetic Cryptanalysis Software
Topic Started: Nov 19 2011, 12:01 PM (2,585 Views)
TechnoCrypt
Member Avatar
Advanced Member
[ *  *  * ]
As far as crypto software goes, I'm yet to come across any software on the web that caters to genetic cryptanalysis. There are quite a few research papers on GA cryptanalysis of classical ciphers, yet not any dedicated software that I know of. Anyone know of any program/software in this regard for classical ciphers? Thanks.
Cipher > Pen > Sword
Offline Profile Quote Post Goto Top
 
Revelation
Member Avatar
Administrator
[ *  *  *  *  * ]
I have implemented a genetic algorithm for solving mono-alphabetic substitutions, but although it was pretty good, it was outperformed by classic hill climbing.

My project is still available here.
Edited by Revelation, Nov 19 2011, 03:56 PM.
RRRREJMEEEEEPVKLWENFNVJKEEEEEAOLKAFKLXCFZAASDJXZTTTTTTTLSIOWJXMOKLAFJNNKFNXN
RAGRBAQEMHIGDJVDSEOXVIYCELFHWLELJFIENXLRATALSJFSLCYTKLASJDKMHGOVOKAJDNMNUITN
RRRRLJVEEEEECLYVYHNVPFTAEEEEEMWLMEIRNGLARWJAKJDFLWNTIERJMIPQWOTZEOCXKNUBNXCN
RJIRPOWEANFUSNCZVDVZNMSFEKLOEPZLDKDJWSAAAAAAAOERHJCTNCKFRIMVKSOFOMKMANREWNBN
RZUDRGXEEEEENFQIDVLQNCKNEEEEEDGLLLLLLAWIOSNCDARLODMTOEJXMILDFJROTKJSDNLVCZNN
Offline Profile Quote Post Goto Top
 
TechnoCrypt
Member Avatar
Advanced Member
[ *  *  * ]
Thanks a lot, Rev! :thumbsup:
Cipher > Pen > Sword
Offline Profile Quote Post Goto Top
 
james
Elite member
[ *  *  *  *  * ]
Attached is a genetic program that solves Vigenere, Beaufort or Variant ciphers.

I agree with Revelation that the genetic algorithm is not as good as hillclimbing for mono-alph ciphers. But I find it comes into its own when the key has a repeated character.
Attached to this post:
Attachments: Vig_genetic.txt (3.79 KB)
Offline Profile Quote Post Goto Top
 
WTShaw
Advanced Member
[ *  *  * ]
I first used a program like this one many years ago, 70's, that drew similar realistic rough histograms. Since this one is written in javacript, it might be easily customized to sense any particular set of allowed characters, list tallies of those characters, and draw a frequency based histogram of them:

http://cryptopopcorn.com/Crypto/js/Utilities/CounterHistogram.html

1) Clear the top field and Paste your data there.

2) With the proper button, select by size the allowed set of characters to be studied.

3) You probably will need to scroll down to see the produced histogram below the individual character tallies.
Offline Profile Quote Post Goto Top
 
james
Elite member
[ *  *  *  *  * ]
@WTShaw

You have misunderstood what the program does.

It does not produce a histogram. It solves Vigenere type cryptograms.

In the example given it solves the Beaufort whose cipher text is:


TJBFC FKRPL RRPJA TNUAP STAOQ XYROX AYSLX OBUBF CEBYL AZYRQ USKTV DGMXN BTSIN YSZZN HSHIS GVAOA
AXHAX SHQSI KZODH SYWBB JYXPY PDFPI GZGCX RZMLF QWXPL FUFSR TQFNA ZMIVK OSPKA TMZGT A


That's a pretty simple task. Do you have a program that can do likewise?

[on edit: font]
Edited by james, Jan 15 2014, 07:53 PM.
Offline Profile Quote Post Goto Top
 
WTShaw
Advanced Member
[ *  *  * ]
My comments have been placed elsewhere as a separate topic. Please pardon my error.

Now, can't figure out how to remove the badly placed posting above...HELP!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Utilities · Next Topic »
Add Reply