1 00:00:00,210 --> 00:00:03,930 So the first thing we will have to import over here is. 2 00:00:07,840 --> 00:00:14,310 Let's see Paperclip, then we want this and we want random. 3 00:00:14,410 --> 00:00:18,220 OK, now we want later this year. 4 00:00:18,640 --> 00:00:25,810 Now here we are storing all letters in capital C, d, e, f, g, h, i j k lemon. 5 00:00:26,680 --> 00:00:31,030 You are estie u v, w, x, y, z. 6 00:00:31,330 --> 00:00:43,300 And now we'll start with the definition for me in which we are creating my messages is equal to we are 7 00:00:43,300 --> 00:00:45,100 giving here some text. 8 00:00:45,430 --> 00:00:48,730 See, this is fighting. 9 00:00:50,160 --> 00:00:50,850 Packing. 10 00:00:56,300 --> 00:01:02,120 Intermediate level course we are. 11 00:01:08,670 --> 00:01:09,840 Let's take a 10. 12 00:01:12,150 --> 00:01:13,050 Triplicates. 13 00:01:15,050 --> 00:01:18,620 Yes, we are doing a simple. 14 00:01:20,770 --> 00:01:28,780 Institution safe, for example, when we are. 15 00:01:38,690 --> 00:01:44,120 Writing a dummy text to. 16 00:01:46,300 --> 00:01:52,150 And using some random. 17 00:01:55,690 --> 00:01:56,450 Characters. 18 00:01:56,770 --> 00:02:00,010 So let us write down the stakes, which we want to interpret. 19 00:02:00,070 --> 00:02:08,220 OK, now, after writing this, the next thing is we would create Mikey STF and give you the key value 20 00:02:08,230 --> 00:02:13,580 that we are using that it should be all six characters, but in a different order. 21 00:02:13,780 --> 00:02:23,770 So let us take that out of your my you is the key element X. 22 00:02:25,010 --> 00:02:25,370 The. 23 00:02:26,370 --> 00:02:29,940 The D. c. ah g. 24 00:02:31,360 --> 00:02:43,000 T q we have not used Q We have used okay then that sticky g h and finally CID's it and then we are taking 25 00:02:43,390 --> 00:02:46,660 my Monastir variable which is over here. 26 00:02:46,660 --> 00:02:49,000 We are putting that excess and drip. 27 00:02:49,210 --> 00:02:54,490 If we want to be prepared, we will have to send this over here to the currently we are doing an encryption 28 00:02:54,490 --> 00:02:54,750 method. 29 00:02:54,850 --> 00:02:56,710 OK, so here we check. 30 00:02:56,860 --> 00:03:07,600 If we see this, we will be creating below the metal that this thicky is valid SGA and we are going 31 00:03:07,600 --> 00:03:12,910 to pass here my ETR as the parameter. 32 00:03:12,910 --> 00:03:27,460 And if this is valid, then we see this exit saying there is an error in the key or symbol set. 33 00:03:29,770 --> 00:03:37,690 Then the next thing we will have to check is, is your mind, Modesta, if it is equal to any group. 34 00:03:39,250 --> 00:03:45,190 Then we are creating a translated SDR variable, which is equal to. 35 00:03:45,730 --> 00:03:47,920 We are calling the script. 36 00:03:51,020 --> 00:04:02,520 Message is still I'm passing my guest here and my message is still variables as parameters, then recheck 37 00:04:02,550 --> 00:04:03,480 else if. 38 00:04:04,610 --> 00:04:10,140 My mother, ASDF, is equal to not in threat, but decrypts. 39 00:04:11,150 --> 00:04:25,930 Then we see translated ETR is equal to decrypt messages in brackets saying, Yes, dear friend, again, 40 00:04:25,940 --> 00:04:29,360 let's pass my message. 41 00:04:30,770 --> 00:04:33,700 OK, so if it does not encrypt, you will check it for decrypt. 42 00:04:33,700 --> 00:04:36,180 If it does that, you will call the appropriate methods. 43 00:04:36,470 --> 00:04:39,950 Now, this method we will be creating later in the same program. 44 00:04:40,580 --> 00:04:48,400 So after this, let us give operand command, say, using the key we put into 30 using percent s and 45 00:04:48,410 --> 00:04:53,340 the value of my key STF. 46 00:04:54,470 --> 00:05:02,810 Then the next one in command will give you receive the percent that is encrypted. 47 00:05:03,230 --> 00:05:10,100 The message is and you put into my more. 48 00:05:10,940 --> 00:05:13,490 So is it encrypted or is it decrypt? 49 00:05:13,820 --> 00:05:26,210 And we print here the value of transmitters to use the paperclip to copy matter and copy the same text 50 00:05:26,900 --> 00:05:32,330 translated as from the blank line and put in the message. 51 00:05:32,450 --> 00:05:40,220 See, this message has been copied to the global. 52 00:05:44,490 --> 00:05:47,340 That's just the way good informing to the user. 53 00:05:47,700 --> 00:05:50,200 Now, that is the end of our main function. 54 00:05:50,550 --> 00:05:57,900 Now we define the false function that we are using that is key is valid estimate, which is taking the 55 00:05:58,650 --> 00:06:00,010 as the parameter. 56 00:06:00,390 --> 00:06:08,460 And here we are having to steer that equal list is still to it. 57 00:06:09,240 --> 00:06:13,080 And then we say let us. 58 00:06:14,080 --> 00:06:21,970 List Asgeir, lots of letters STF. 59 00:06:22,990 --> 00:06:24,510 And then we'll key. 60 00:06:26,210 --> 00:06:35,480 List, SDR, dot thought and letters list Aysgarth Dot. 61 00:06:35,720 --> 00:06:39,140 So then we finally say return the. 62 00:06:42,770 --> 00:06:43,910 Killis dustier. 63 00:06:46,710 --> 00:06:53,520 Is equal to your letters list STF. 64 00:06:53,820 --> 00:07:02,660 OK, and after this written statement, we define the encrypt message here, OK? 65 00:07:03,060 --> 00:07:07,230 And in this again, we're able to pass the parameter. 66 00:07:07,260 --> 00:07:11,470 So now the parameters of 60 are and messages. 67 00:07:12,780 --> 00:07:14,760 Then we just return the. 68 00:07:16,610 --> 00:07:17,630 Translated. 69 00:07:20,550 --> 00:07:29,000 Message, so, again, this we would be creating below in which we are passing the message, dear, 70 00:07:29,290 --> 00:07:32,190 and the text us encrypt. 71 00:07:33,360 --> 00:07:44,840 Similarly, redefine decrypt messages again, passing your key steer and message steer. 72 00:07:44,880 --> 00:07:53,910 And also we are using a written statement for translated messages to where we are passing the value 73 00:07:53,910 --> 00:07:58,320 of our message to steer and. 74 00:08:01,120 --> 00:08:08,440 Decrypt the text now, let us see the definition of a transmit message system, which is a main function, 75 00:08:08,800 --> 00:08:10,430 and get random keys also. 76 00:08:10,440 --> 00:08:11,290 We created.