1 00:00:00,150 --> 00:00:04,650 Now will create an empty matrix to store the deciphered message. 2 00:00:04,890 --> 00:00:16,620 So here we create these cipher SDR that's equal to blank initially and then we run on the score in the 3 00:00:16,860 --> 00:00:31,960 range rule your run using the DC cipher, SD card use plus is equal to none multiplied by the columnist 4 00:00:31,980 --> 00:00:34,860 here close Closed-in Square brackets. 5 00:00:35,160 --> 00:00:42,390 And then we would arrange the Matrix while the column was according to the permutation order by adding 6 00:00:42,390 --> 00:00:43,680 into one new matrix. 7 00:00:44,010 --> 00:00:50,850 So here again, we would run four on the score in the range of now columnist. 8 00:00:52,920 --> 00:01:02,130 And here we see the current variable for current current current Ebix, we have you that is equal to 9 00:01:02,130 --> 00:01:09,000 the key is still not use the index in bracket. 10 00:01:09,030 --> 00:01:14,170 The key list that you have created, the bracket colonoscope idea. 11 00:01:15,870 --> 00:01:24,790 And after this, we create another for loop ciggy, one in the range of your role here. 12 00:01:24,840 --> 00:01:35,910 We use the DC Cipher SDR at the index G1 and the second index as current index. 13 00:01:36,300 --> 00:01:48,390 That's equal to we use the message enlistee index of message index and here we say the message index 14 00:01:49,530 --> 00:01:52,350 plus is equal to one. 15 00:01:52,800 --> 00:01:55,260 And here we see the key. 16 00:01:55,420 --> 00:01:59,160 The score index is plus is equal to one. 17 00:01:59,730 --> 00:02:05,680 Now, once we have done this, we will have to convert the decrypted message matrix into spring. 18 00:02:06,150 --> 00:02:13,980 So for that, we would go one level back and say, you're right, give here the value, say, MSJ, 19 00:02:14,140 --> 00:02:20,670 SDR, that's equal to blank dot veals join in bracket. 20 00:02:20,670 --> 00:02:33,480 We give the sum of the easy, say, Forestier, comma square brackets and then we say here, except 21 00:02:33,870 --> 00:02:48,000 the type error call we are raising here, the type error c c this program cannot 22 00:02:51,750 --> 00:02:52,410 handle 23 00:02:54,720 --> 00:02:56,330 repeating votes. 24 00:02:57,140 --> 00:03:07,830 Close it and then we create herea null count that's equal to our message is still to count the underscore 25 00:03:07,830 --> 00:03:10,440 value and check. 26 00:03:10,560 --> 00:03:18,840 If your null count is more than zero then we are saying return the message. 27 00:03:18,840 --> 00:03:28,330 SDR using the string as minus null on the school or college in the school bracket. 28 00:03:28,710 --> 00:03:35,340 Now once you have completed this, don't forget to return the value of message and once that is done, 29 00:03:35,340 --> 00:03:38,120 we return the value of message SDR. 30 00:03:38,610 --> 00:03:51,780 Here we will create MSDS star value and we are giving here the code as C this is fighting hacking message 31 00:03:52,320 --> 00:03:54,080 and here we are first. 32 00:03:54,120 --> 00:03:59,130 Calling the encrypt a star is a variable that we have created. 33 00:03:59,520 --> 00:04:04,890 Where we are calling the encrypt message is still passing. 34 00:04:04,890 --> 00:04:07,050 The MSDS are variable there. 35 00:04:07,560 --> 00:04:12,480 Then we are printing the value of encrypt astar variable. 36 00:04:13,440 --> 00:04:23,190 We again create or decrypt star wherein we are calling the decrypt message A and now we are passing 37 00:04:23,190 --> 00:04:29,730 in this the encryption because whatever is encrypted, the same thing we are supposed to decrypt and 38 00:04:29,730 --> 00:04:33,440 then we are printing here the value of decrypt hestia. 39 00:04:34,020 --> 00:04:45,090 Let us save this in the same folder by the name say demo sixteen, not by and let us try to run the 40 00:04:45,090 --> 00:04:45,570 module. 41 00:04:46,140 --> 00:04:50,910 Now that is let's see on line number seven first. 42 00:04:51,030 --> 00:04:57,210 So let's go back here and let's go to line number seven. 43 00:04:58,690 --> 00:05:05,910 Or that is a lie, as Steve made a mistake, their gear still is not defined online. 44 00:05:05,920 --> 00:05:07,530 No, it's fine. 45 00:05:09,250 --> 00:05:12,640 So here we have defined Kirsti of. 46 00:05:15,280 --> 00:05:20,630 Metaphors are in asteroidal, a spelling mistake, line number sixty four. 47 00:05:20,950 --> 00:05:31,810 Let's go to line sixty four and this is why beating again, let us run the module site. 48 00:05:31,810 --> 00:05:33,790 Forestier is not defined. 49 00:05:33,910 --> 00:05:37,510 That is line number torpedos. 50 00:05:39,590 --> 00:05:44,930 So we are having here, say, Asgeir, not the. 51 00:05:46,130 --> 00:05:47,570 Let's give it a run. 52 00:05:48,290 --> 00:05:53,750 So this is how it has been encrypted and the same text has been taken for Decrypt, and this is the 53 00:05:53,750 --> 00:05:59,360 original message that we have written, which is passed on to encrypted, encrypted, and this message 54 00:05:59,360 --> 00:06:03,960 is passed on to decrypt to get back your original message. 55 00:06:04,460 --> 00:06:10,970 So likewise, we have done another demonstration wherein we have combined both the files together for 56 00:06:10,970 --> 00:06:13,340 encrypting it and for decrypting it. 57 00:06:13,520 --> 00:06:20,630 So if you now try to import this file that we have, for example, the more 16 in another file and you 58 00:06:20,630 --> 00:06:25,130 want to use both the encryption decrypt methods is quite possible. 59 00:06:25,260 --> 00:06:30,050 So you don't need to import two different files, just import one file that is the most exciting. 60 00:06:30,290 --> 00:06:38,910 And using them all 16 dot encrypt messages start for encrypting it and demo 16 for dot decrypt messages 61 00:06:39,230 --> 00:06:43,000 for decrypting a particular message and getting the value written. 62 00:06:43,190 --> 00:06:49,220 Hence we are returning this value every so that you can save it in another variable like this and print 63 00:06:49,220 --> 00:06:51,100 it wherever you're using it. 64 00:06:51,590 --> 00:06:52,980 So that's it from the session. 65 00:06:53,000 --> 00:06:53,930 Thank you very much.