/caesar

Decipher a string encrypted with the Caesar cipher

Primary LanguageGo

Caesar

caesar gopher

Description

This application tries to decode a string encoded with the Caesar Cipher trying all the possible combinations and comparing the decoded words with an English dictionary.

Usage

Run the script:

go run main.go

Type in the encrypted string when prompted and press enter. A list of possible phrases will be returned, if more matches are found.

Enter encoded text:  EFGFOE UIF FBTU XBMM PG UIF DBTUMF
The solution is likely to be:

  DEFEND THE EAST WALL OF THE CASTLE

Todo

  • Embed the txt dictionary in the binary.