-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
28 lines (19 loc) · 943 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Vigenery. A program to encrypt/decrypt and break the vigenere cipher.
Author: Brendan Fahy <brendan@f4hy.com>
To build this project you will need GHC (or some other haskell compiler)
Build with:
ghc --make vigenery
############
Usage : vigenery [-mode] [-i input] [-k key]
Encryption
vigenery -e -i inputfile.txt -k key
vigenery -e -i inputfile.txt -k key -o output.txt
Decryption
vigenery -d -i inputfile.txt -k key
vigenery -d -i inputfile.txt -k key -o output.txt
cryptAnalysis
vigenery -a -i inputfile.txt
#############
The vigenere cipher was once known as the unbreakable cipher and was used extensivly during the american civil war!
Now it is very easy to break. To break the cipher this program uses the Kasiki test, and statistical information from finding the Index of Coincidence.
The program works pretty well, but is not very robust and does not handle bad user input well. That is coming in the next version