Dcypher is a decoder for decoding text encrypted with Gold-Bug cipher in Haskell with accuracy of 92% over the hidden test set. Used various heuristics like frequency, bigram and trigram analysis and hamming distance comparison to improve both running time and accuracy of the algorithm.
- Add the encrypted text by Gold-Bug Cipher in file GoldBugCipher.txt
- Compile and run Dcypher.hs file
- Output will be in the file DicipheredText.txt
ghc Dcypher.hs
./Dcypher
- Add the encrypted text by Gold-Bug Cipher in file GoldBugCipherSpecialCharacters.txt all text here must be of non-alphabetical type.
- Compile and run DcypherWithSpecialCharacters.hs file
- Output will be in the file DicipheredTextWithSpecialCharacters.txt
ghc DcypherWithSpecialCharacters.hs
./Dcypher