-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProcessAndDocumentation.txt
41 lines (25 loc) · 1.63 KB
/
ProcessAndDocumentation.txt
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
29
30
31
32
33
34
35
36
37
38
39
40
41
Use this file as a "journal" of your activity. Be sure to include links to all resources you used.
NAME: Archit Ashok
Block: Y
DATE: 1/8 - 1/9 (optional)
DATE: 1/10
DATE: 1/11
DATE: 1/12
DATE: 1/13
DATE: 1/14
DATE: 1/15
DATE: 1/16
DATE: 1/17
I decided to do a two part cipher known as the fractionated morse cipher, which I found here:
http://practicalcryptography.com/ciphers/classical-era/fractionated-morse/. It is essentially a two part substitution
cipher that uses morse code, and then a mixed alphabet key for each combination of three character (., -, x) (x
indicating a character gap and xx indicating a space)
I began by implementing the private fields, of which there are a few. First, the key, which is just the alphabet in some random order,
I also had a key part two, which I would append to the original key in order to create an associated list to the morese code list
The morse code list was just all of the alphabet, all of the special characters, and then all of the number.
There was also a special table which would be used to convert the morse code into the encoded letters.
So the encode now just had to iterate through the message and append the associated morse code to a string builder. If there was a space an xx would be added
and there was an x between every character. Now I made sure the character count was divisible by three for the next step.