Now will create an empty matrix to store the deciphered message.
So here we create these cipher SDR that's equal to blank initially and then we run on the score in the
range rule your run using the DC cipher, SD card use plus is equal to none multiplied by the columnist
here close Closed-in Square brackets.
And then we would arrange the Matrix while the column was according to the permutation order by adding
into one new matrix.
So here again, we would run four on the score in the range of now columnist.
And here we see the current variable for current current current Ebix, we have you that is equal to
the key is still not use the index in bracket.
The key list that you have created, the bracket colonoscope idea.
And after this, we create another for loop ciggy, one in the range of your role here.
We use the DC Cipher SDR at the index G1 and the second index as current index.
That's equal to we use the message enlistee index of message index and here we say the message index
plus is equal to one.
And here we see the key.
The score index is plus is equal to one.
Now, once we have done this, we will have to convert the decrypted message matrix into spring.
So for that, we would go one level back and say, you're right, give here the value, say, MSJ,
SDR, that's equal to blank dot veals join in bracket.
We give the sum of the easy, say, Forestier, comma square brackets and then we say here, except
the type error call we are raising here, the type error c c this program cannot
handle
repeating votes.
Close it and then we create herea null count that's equal to our message is still to count the underscore
value and check.
If your null count is more than zero then we are saying return the message.
SDR using the string as minus null on the school or college in the school bracket.
Now once you have completed this, don't forget to return the value of message and once that is done,
we return the value of message SDR.
Here we will create MSDS star value and we are giving here the code as C this is fighting hacking message
and here we are first.
Calling the encrypt a star is a variable that we have created.
Where we are calling the encrypt message is still passing.
The MSDS are variable there.
Then we are printing the value of encrypt astar variable.
We again create or decrypt star wherein we are calling the decrypt message A and now we are passing
in this the encryption because whatever is encrypted, the same thing we are supposed to decrypt and
then we are printing here the value of decrypt hestia.
Let us save this in the same folder by the name say demo sixteen, not by and let us try to run the
module.
Now that is let's see on line number seven first.
So let's go back here and let's go to line number seven.
Or that is a lie, as Steve made a mistake, their gear still is not defined online.
No, it's fine.
So here we have defined Kirsti of.
Metaphors are in asteroidal, a spelling mistake, line number sixty four.
Let's go to line sixty four and this is why beating again, let us run the module site.
Forestier is not defined.
That is line number torpedos.
So we are having here, say, Asgeir, not the.
Let's give it a run.
So this is how it has been encrypted and the same text has been taken for Decrypt, and this is the
original message that we have written, which is passed on to encrypted, encrypted, and this message
is passed on to decrypt to get back your original message.
So likewise, we have done another demonstration wherein we have combined both the files together for
encrypting it and for decrypting it.
So if you now try to import this file that we have, for example, the more 16 in another file and you
want to use both the encryption decrypt methods is quite possible.
So you don't need to import two different files, just import one file that is the most exciting.
And using them all 16 dot encrypt messages start for encrypting it and demo 16 for dot decrypt messages
for decrypting a particular message and getting the value written.
Hence we are returning this value every so that you can save it in another variable like this and print
it wherever you're using it.
So that's it from the session.
Thank you very much.