00:05
So here we're trying to encode the plain text, sad turn of events, using a vinagre cipher with the key musket.
00:14
So the way that this cipher works is we write the key underneath all of the letters in our plain code over and over and over again.
00:21
So we're just going to keep writing the letters of musket until we get to the end.
00:26
And as you can see, we don't even necessarily finish off the word musket, we just kind of keep using that cycle of words.
00:33
We are using this just kind of standard alphabet.
00:38
And so from here, we're going to turn all of our letters into numbers.
00:41
So 1, 2, 3, 4, 5, and so forth.
00:48
And it is really helpful to write it out so that you can see where they all line up for this next step.
01:00
Because what we're going to do then is we are going to turn both of the lines of text that i have right here into letters.
01:08
So i'm going to start with our plain text, sad turn of events.
01:12
S is 19, a is 1, d is 4, t is 20, u is 21, r is 18, n is 14, o is 15, f, 6, and then 5, 21, 5, n is 14, 20, and 19.
01:47
We're going to do the same thing with our code musket.
01:51
And the nice thing about this is that it repeats, so there's a little less work you have to do once you've found it out to begin with.
02:01
So now i can just repeat those numbers, 13, 21, 19, 11, 5, and 20, 13, 21, and 19.
02:12
So what we do from here is we add these numbers where they line up.
02:17
So for our first column, we do 19 plus 13.
02:27
And the next one, 1 plus 21, and so forth, and so on.
02:30
And this is going to encode this into a new set of numbers.
02:36
So this one is 22, 23, 31, 26, 38, 27, 36, 25, 16, 21 plus 5 is 26, 25, 27, 41, and 38.
03:09
So if you'll notice, some of these numbers are too big.
03:12
They don't fit within our alphabet of 26.
03:15
And essentially what happens is we just circle back around.
03:18
So our alphabet ends at 26 for z.
03:21
That means 27 would take you back to a, and it lines up with 1 in this code.
03:27
So what we're going to do to find out how they line up within the system of 26 is we're going to take the number, like this 32 at the very beginning, and we're going to subtract 26.
03:36
And it'll take us kind of back around the cycle of where it left us.
03:41
So that's 6.
03:43
If it's already within the system of 26, we're just going to leave it as it is.
03:49
But if it's bigger than 26, i am going to subtract.
03:57
That way i can see kind of where we're lining up.
04:05
Oh, 27 turns into 1, 15, and 12.
04:13
And now we have our set of encoded numbers that we're going to translate back to letters using that alphabet above.
04:21
So 6 lines up with f.
04:25
22 lines up with v.
04:29
23 lines up with w.
04:32
5 is e.
04:34
26 is z.
04:35
12 is l.
04:37
1 is a.
04:38
10 is j.
04:40
25 is y.
04:42
16 is p.
04:44
26 is z.
04:46
25 is y.
04:48
1 is a.
04:50
15 is o.
04:52
And 12 is l.
04:55
And here is your encoded message for that first part.
05:01
Our second problem on here has a different set.
05:07
So i'm going to kind of erase some of this work so that we can reuse our alphabet up here.
05:12
There's your answer to part a.
05:15
Our second problem uses a different alphabet slightly because they add in some punctuation.
05:29
So the rest of our alphabet is the same...