1 00:00:00,150 --> 00:00:07,470 Now, once we have done this, let us check for another option, another, if not so, we will check 2 00:00:07,470 --> 00:00:17,820 again another condition that if your key be one, if that is equal to zero and your Monastir is equal 3 00:00:17,820 --> 00:00:27,270 to encrypt, OK, then again, you're saying systems exit and you're giving a message, say, for this 4 00:00:27,870 --> 00:00:29,280 week if. 5 00:00:31,160 --> 00:00:39,590 That's ciggie vivants is Zettl say Juzo different? 6 00:00:41,660 --> 00:00:51,200 OK, this is another that we have checked another we will be checking here that if your key A1 is less 7 00:00:51,200 --> 00:00:58,220 than zero or your key V1 is less than zero or. 8 00:00:59,470 --> 00:01:07,870 Shaky V1 is more than the length of our symbols STF. 9 00:01:10,390 --> 00:01:20,800 And that comes to land minus one, then, if this is true again, we are seeing this exit Saiki even 10 00:01:22,360 --> 00:01:23,140 must be. 11 00:01:24,800 --> 00:01:41,190 Greater than zero and your key be won must be, say, between zero and print percent s and put into 12 00:01:41,190 --> 00:01:47,600 your percent in bracket Saillant of. 13 00:01:51,330 --> 00:01:54,240 Symbolistic, minus one. 14 00:01:55,420 --> 00:02:03,550 Now, once we have checked with this, the next we will check in the if condition, that is, see if 15 00:02:03,550 --> 00:02:03,910 your. 16 00:02:07,300 --> 00:02:20,350 Crypto math one got use the CD function there, Paskey, A1 there, and the length of symbols STF and 17 00:02:20,350 --> 00:02:23,590 if that is not equal to one. 18 00:02:25,250 --> 00:02:31,460 Then again, you see start exit and put into your psyche even. 19 00:02:32,480 --> 00:02:45,260 In Blackett Placenta's and the symbol set size and bracket, again, percentages are not. 20 00:02:46,540 --> 00:02:50,560 Relatively prime, say Tuzer. 21 00:02:53,480 --> 00:02:55,560 Different key. 22 00:02:56,910 --> 00:03:05,150 And print wasn't even here then the length of symbolistic. 23 00:03:06,240 --> 00:03:14,070 Now, after we have checked for all the conditions in the Czech ETR method that we have to find, we 24 00:03:14,070 --> 00:03:16,680 move on to creating the encrypted 25 00:03:18,990 --> 00:03:26,310 message SDR method, which will take the USDA and the message still. 26 00:03:27,470 --> 00:03:30,410 And inside this, we would be creating. 27 00:03:32,040 --> 00:03:44,760 He even gonna give me one that equals do we get the key part instead, but the key is the. 28 00:03:46,610 --> 00:03:51,770 So we are getting those values, which are things that are core values, which are that we are creating 29 00:03:52,130 --> 00:04:02,830 variables to hold the values, then we call the chick, he starts to talk and he'll be able he. 30 00:04:03,950 --> 00:04:15,410 The one and the next, and then we create here see ciphertext steer that's equal to blank. 31 00:04:15,410 --> 00:04:20,000 Initially we ran all four four symbols in. 32 00:04:21,250 --> 00:04:25,330 I steer, we check if the. 33 00:04:26,530 --> 00:04:41,230 Symbol in symbol still, then here we create Symbol X that's equal to symbols, dear God used to find 34 00:04:41,230 --> 00:04:53,530 a method and pass symbol into it and then we see ciphertext STF plus is equal to symbolistic properly. 35 00:04:53,530 --> 00:04:55,960 Square bracket heliopause the. 36 00:04:57,030 --> 00:05:09,930 Symbol ideas multiply that with key events plus key Beevor and divide that with the length of. 37 00:05:13,790 --> 00:05:17,260 Symbolistic then close the square bracket. 38 00:05:18,050 --> 00:05:24,800 Now, this is the effort that we have written, will move on to the sales part here and here. 39 00:05:24,800 --> 00:05:28,820 We will write the cipher text. 40 00:05:29,030 --> 00:05:33,310 SGA plus is equal to the symbol. 41 00:05:34,160 --> 00:05:37,450 So we are basically opening the symbol without encrypting it. 42 00:05:37,790 --> 00:05:42,710 And at the end, in the last we would see written. 43 00:05:43,810 --> 00:05:49,960 So for next year, that is the end of the definition of an active message. 44 00:05:50,290 --> 00:05:51,700 Similarly, we are having. 45 00:05:53,650 --> 00:05:54,420 The crypt. 46 00:05:56,290 --> 00:05:58,750 Message is this also takes. 47 00:06:00,110 --> 00:06:03,160 Staff and messages. 48 00:06:04,250 --> 00:06:14,570 And in this, we are again creating he even then one that Squirtle we are calling the get. 49 00:06:15,680 --> 00:06:18,440 Key part is still passing. 50 00:06:18,660 --> 00:06:21,250 The key is still there. 51 00:06:21,440 --> 00:06:28,010 We are calling again, the check is still matter and passing in that A1. 52 00:06:29,070 --> 00:06:37,920 The one with the text decrypted, because now we want to decrypt it, so for storing the text, we take 53 00:06:37,920 --> 00:06:43,090 plaintext as the average is equal to blank, then we create more. 54 00:06:44,220 --> 00:06:46,020 In words of. 55 00:06:48,210 --> 00:06:50,520 A, that's equal to now. 56 00:06:50,540 --> 00:06:51,420 We are calling the. 57 00:06:52,670 --> 00:06:57,780 Krypto, Matawan, dot, we call now in that file. 58 00:06:58,490 --> 00:07:08,450 Let us just check, we'll go through our file and let us open this in Python itself. 59 00:07:13,820 --> 00:07:21,260 Righto, let's temporarily open this using the same notepad. 60 00:07:24,190 --> 00:07:27,760 Now, in this, we are having this find more enrols. 61 00:07:28,970 --> 00:07:30,410 Same method we are having. 62 00:07:30,770 --> 00:07:39,500 So let us go back here and the same method name, we would don't find more involved and we passed there 63 00:07:39,680 --> 00:07:45,450 even and the length of a single STF. 64 00:07:46,190 --> 00:07:51,470 So that value will be stored in the more inverse of even let's give your evil. 65 00:07:51,650 --> 00:07:53,530 That is easy for us to remember.