The ciphertext consists of the letters read from the top left box going down the column from the first
column as well in the particular sheet that we have created.
So how basically the code would be written now is it'll will start reading from top to bottom.
So over here, say, for example, be a O.
S next will be by see you as Sidiki are a h i s g then o n e n g.
Now that symbol there and the dot.
So this is all basically it is going to end.
Now let us see this.
We are related that not creating the particular encryption program here now to make the program for
encrypting, you will need to translate this paper and pencil that we have done right now in the manual
one into a python code.
So now let's look again how to encrypt the string that we have using the key H to Python or characters
position inside a particular string is it's no index.
So we'll add an index as each letter in the particular string in its numbered index.
So add the index for each letter in the string to the boxes in the original encrypting diagram.
Now, for example, we would start over here and let's add here the index starting from say zero, then
say one, two, three, four.
So on in the last one.
OK, so we would be adding the seven we have added.
Similarly, we will do it for all of so we it will be from eight to 15, then 16 to twenty three and
twenty nine because of this from starting from zero onwards.
So just let's keep on writing the index values there that's done.
10 15 move to the next one, say 18, 19.
20, 21, 22, 20, three, four, five, six, twenty seven, twenty eight, and the last one.
Twenty nine.
So we have added the index to the each of these boxes.
So these boxes show the first column which has the characters, which will be like zero eight, 16,
20, for which the characters are capital P A or is the next column will have the characters on indexes.
That is one nine seventeen twenty five which are Sivi c u.
S.
I notice the pattern emerging that the end column has all the characters in the particular string at
index zero plus and minus one eight plus and minus one sixteen plus and minus one and twenty four plus
and minus one.
For example, if we write down something like over here, so zero plus zero equals to zero.
Similarly seven plus zero equals two, one or two plus zero equals two.
To similarly say three plus zero equals two three, four plus zero equals two four five plus zero equals
two five six plus zero equals two six seven plus zero equals two seven.
But when we come over here, say eight here also we C plus.
So you will see eight plus zero.
That's equal to eight.
Now here we will add one to it and we would make it all rather we would make it something like, say,
one plus eight.
That's equal to nine.
So we're going to take your one for substituting.
So here again, we will see two plus eight.
That's equal to in here.
We will take, say, three plus eight.
That's equal to eleven here.
We would take four plus eight.
That's equal to twelve.
Similarly, five plus eight.
That's equal to thirteen C six plus eight.
That's equal to fourteen.
And finally the seven plus eight, that's equal to fifty.
But when we come over here, we again substitute zero plus sixteen.
That's equal to sixteen.
But over here.
Let's make it one plus 16, that's equal to 17.
Now we'll have to just decrease the size of it here.
We would say to plus 16, that's equal to 80, then three plus 16, substitute for plus 16.
It would be five plus 16.
Then it would be six plus 16 and finally it would be seven plus 16.
When we come down to the last row, we would make again zero plus twenty four equals twenty four.
But over here we would substitute seven plus twenty four equals twenty five.
Similarly say two plus twenty four, then say three plus twenty four and similarly four plus twenty
four finally will make it this five plus twenty four.
Now, in this way, we are going to get the index of each box, which will follow the predictable pattern.
Now, there will be an exception for the last rule in the seventh and the eighth column, because when
you see twenty four, that is seven minus one and twenty four plus eight minus one would be greater
than twenty nine, which is the largest index in the string.
Now in those cases you will have to only add zero eight 16 and in that is the scapegoat for that.
So what's so special about the numbers.
Zero eight sixteen twenty four in this case that these numbers you when you start from zero, you are
the key.
That is eight over here.
So zero plus eight is what you get there.
Similarly then you add eight plus eight, you get the 16.
When you add 16 plus eight, you get the twenty fourth.
Hence we are getting the first and zero then added to it, added to it and again added it as the key
to it.
So hence the result is coming like this.
Fine.
Now the last one, when you say twenty four plus eight, it would be 32, but 32 is larger than the
length of the message.
So you will stop at twenty four there and for the end column strength starting at the index and continue
adding the eight to get the next index.
Keep adding it as long as the index is less than the length of the message, that is less than 30 at
which point move to the next column.
So if we can imagine each column in a particular string, the result will be the list of the eight string
that we will be getting.
For example, in the first one you would be getting the string as B A whole is then you would be getting
I see you as then city.
They are a then say h l s g c o n e then say n g the particular symbol and let's cooperate on the symbol
here.
Similarly, here again, let's go on the same symbol
two times, then you will have him and similarly here you would have the edge see E!
So something like this is what basically we would be encrypting there.
So now let's have a look.
And we would create a particular program for the same one.
And let's see if we get the similar output that we have created over here manually.
So now we would go for the source code for transposition cipher encryption program.
So we have come to the python environment.
Now, let's create a new file here.
And we would start by forcing Emboli Paperclip, after which we would define the mean here.
We want to define see my messages, dear.
Now, that's equal to the same string that we have taken, say, Biton.
Hacking calls, message written, but also then we define here, say, my keister, and that's equal
to eight as we have taken in the manual, one also that we should get the same output there.
Then we would have the ciphertext Nestea and that's equal to now.
Here we are going to call it encrypt message SDR.
Which will he or we would be passing Mike ETR and my message STF.
So after this we would see a print command and we would give you plenty cipher text to start with in
that concatenate or pipeline symbol.
And after that, we would copy encrypted text to the ciphertext clipboard, so we would say, here,
use the paperclip dot copy method and see cipher text Steyr.