It applies statisical attack to break the Cipher and give you the original text.
If you run it using the Ubuntu Terminal, you can:
scala Cipher -encrypt key filename --- Applies the key to the text in filename.
scala Cipher -decrypt key filename1 > filename2 --- Decrypts the text in filename1 and puts it in filename2.
scala Cipher -crib suppKey filename --- Tries breaking the code by assuming suppKey appears somewhere in filename.
scala Cipher -crackKeyLen filename --- Gives you the likelihood of the length of the key.
scala Cipher -crackKey 6 filename | sort -n | uniq -c --- Gives you the key!
Log in or sign up for Devpost to join the conversation.