caesarcrack

command module
v0.0.0-...-697cc84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

CaesarCrack

This is my poor implementation of a dictionary attack on Caesar ciphers.

It has a single dependency for debugging visibility, go-spew, and is otherwise written by hand.

Originally, I wrote this to guess at the best shift (most dictionary hits) of the three longest words. I decided to perform the attack on all 26 shifts, and pick the highest confidence based on number of dictionary hits as a means to better handle dictionary misses, misspellings, etc.

CaesarCrack is vulnerable to simply misspelling every ciphered word, causing all confidences to be very low.

TODO:
  • Replace test string with file input
  • Support stdin for cli piping (e.g. pbpaste | caesarcrack)
  • consider displaying confidence distribution chart in cli
  • Support punctuation, etc.
  • Handle case

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL