Caesar / Viginère encoding & decoding tool
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Brutus.xcodeproj
Brutus
BrutusTests
Carthage/Checkouts
Cartfile.private
Cartfile.resolved
LICENSE
README.md

README.md

Brutus

Caesar / Viginère encoding & decoding tool

What?

This is a simple macOS app that takes a .txt file as input and en-/decrypts it into an output file Ver(Ent-)schlüsselt.txt using the given key. It's also capable of 'cracking' single-char-key-encrypted (Caesar-encrypted) files by analyzing the relative frequencies of every character and then comparing those frequencies to the normal frequencies in a sample german text. This feature only works on german Text files and spits out 4-5 possible solutions, often times the second or third file is the correct one.

Why?

I wrote this app as a part of my Abitur (A-Levels). The topic is Cryptology and this app was used to demonstrate the weaknesses of symmetrically encrypted texts using the Caesar-chiffre.

How?

The magic happens in Crypt.swift which is mostly documented to in-line. Saving, reading and displaying is done in the view controller classes.

2Do

  • Write tests
  • Reduce trash output on cracking
  • Implement Viginère cracking by using this

License

MIT pretty much, the logo was inspired by Dribbble, use it as you like and let me know if you do something cool.