caesar_cipher_breaker

Automatic Caesar's cipher breaker written in Crystal

Caesar Cipher Breaker Build Status

Caesar cipher automatic breaker (brute force)

Installation

git clone --depth 1 https://github.com/hugoabonizio/caesar_cipher_breaker.git
cd caesar_cipher_breaker
make build
sudo make install

Usage

Finding cipher's key by brute force

$ caesar-breaker pmttw
Key: 8
Decoded: hello
Entropy: 4.003738725866233

$ caesar-breaker "wx, bn cpbt xh Wjvd"
Key: 15
Decoded: hi, my name is Hugo
Entropy: 4.370609093583495

Encoding a string

$ bin/caesar-breaker --encode 15 "hi, my name is Hugo"
wx, bn cpbt xh Wjvd

Decoding a string

$ bin/caesar-breaker --decode 8 pmttw
hello

Contributing

  1. Fork it ( https://github.com/hugoabonizio/caesar_cipher_breaker/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

caesar_cipher_breaker

Owner
Statistic
  • 6
  • 0
  • 0
  • 0
  • 0
  • almost 7 years ago
  • September 25, 2017
License

MIT License

Links
Synced at

Fri, 22 Nov 2024 03:40:02 GMT

Languages