CryptokCodeCracker
Running Key Cipher Decoder + other classic cipher decoders. Automatically discovers likely solutions using an NGram language model.
Install / Use
/learn @kjhulin/CryptokCodeCrackerREADME
CryptokCodeCracker
By Kevin Hulin (Cryptok)
About the source: This project was developed over the past five years, largely to automate the decryption of codes in order to compete in the Defcon Badge Challenge. Read more about the badge challenge here: http://elegin.com
This project has two main components: RKCCrack and ClassicCipherSolver.
To read about Running Key Cipher and the techniques employed to solve them here, please see my blog post at https://cryptok.space/crypto
The Classic Cipher Solver includes a set of algorithms and encodings that the program enumerates through in permutations to attempt to find solutions that appear to be English text.
Additionally, a Vigenere Cipher solver is included which utilizes index of coincidence and character frequency distributions to find probable keys and decryptions.
At the heart of these cipher solvers is the language model that, given a string of text, will output a decimal number roughly corresponding to the log likelihood that the string of text is English.
Building and running the project: This project was developed in Netbeans 8.0, however, all source is included to enable building on any platform where Java is available.
Quickest way to get the code running from command line: Build: $ make
Run: (** Must be run from project root -- Program expects corpus directory to be present **) java -jar dist/rkccrack.jar
On first run, the program will learn 6-gram probabilities from the included corpus. Feel free to add / remove text files to/from this corpus. Texts included are taken from project gutenburg https://www.gutenberg.org .
On successive runs, a learned frequency file is read (RKC.prob) to save time.
Sample ciphers are provided in ciphers.txt
Have fun!
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
