1 00:00:00,900 --> 00:00:04,790 Now, in this, we will be solving a city of challenge. 2 00:00:05,180 --> 00:00:12,540 It was given in the mobility of of course, these are sensitive if you participate in the 28 year minimum 3 00:00:12,630 --> 00:00:17,490 security of your basic safety of are some modifications of city of. 4 00:00:18,660 --> 00:00:26,260 So here we got the silver value and added value and that value and they are so good p value. 5 00:00:27,060 --> 00:00:29,270 So luckily for us, they have given the P value. 6 00:00:29,340 --> 00:00:34,740 So if they did not give people what you had to release, you need to factor this large number. 7 00:00:35,550 --> 00:00:38,220 So because it is close to being right. 8 00:00:39,150 --> 00:00:41,040 So let me copy this. 9 00:00:41,910 --> 00:00:47,670 And there is a circle factory and here we can trace the number given. 10 00:00:50,100 --> 00:00:59,850 So if we can get the two numbers and this number is multiple, this is going to multiply these two numbers 11 00:00:59,850 --> 00:01:06,230 so you can see this first number is they have given already P-value one five three one four three zero. 12 00:01:06,240 --> 00:01:07,540 And this one is equal to this one. 13 00:01:08,070 --> 00:01:11,660 So let us solve this using Python. 14 00:01:11,970 --> 00:01:20,220 So did not tell you what we call basics in the Python section, but this is going to be simple mathematical 15 00:01:20,220 --> 00:01:21,180 calculations already. 16 00:01:21,960 --> 00:01:23,430 So let us copy everything. 17 00:01:26,650 --> 00:01:29,730 And copying everything into a variable so that I can operate. 18 00:01:30,250 --> 00:01:31,890 And he was caught by the interpreter. 19 00:01:41,820 --> 00:01:45,130 So I wrote it all the values into my Python interpreter. 20 00:01:45,750 --> 00:01:47,690 Now I can start my calculations. 21 00:01:48,390 --> 00:01:59,670 So any sequels to be in Tokyo, we have already got B and we need 20 and we can get by NYP right now. 22 00:01:59,670 --> 00:02:02,870 If I checked, you value your get the key value. 23 00:02:03,120 --> 00:02:10,710 So we have got PKU and what we have to find is we need to find PI often by profit is equal to P minus 24 00:02:10,710 --> 00:02:10,950 one. 25 00:02:12,240 --> 00:02:16,330 Little curious one, if you remember from the previous video. 26 00:02:18,150 --> 00:02:25,080 So if I take my offer now I got this pi often you know how to decrypt this ciphertext means we need 27 00:02:25,080 --> 00:02:33,900 to find the right cipher print X is equal to the ciphertext or our models and right. 28 00:02:34,500 --> 00:02:41,640 So to find out the what we are going to do is we need to find the inverse of this. 29 00:02:42,840 --> 00:02:43,420 Uh. 30 00:02:44,130 --> 00:02:44,430 Yeah. 31 00:02:45,210 --> 00:02:45,440 OK. 32 00:02:45,600 --> 00:02:46,860 Let me recall this. 33 00:02:47,280 --> 00:02:51,380 Devalue the Dean B Martin is equal to one right now. 34 00:02:51,390 --> 00:02:58,820 You can find B using the inverse function inverse of ECOMIL payoff. 35 00:03:00,690 --> 00:03:04,980 So this is the inverse model function of these two where you will get this T value. 36 00:03:07,410 --> 00:03:09,220 There is no inverse function. 37 00:03:09,240 --> 00:03:17,860 OK, I need to import some model called crypto to get you to look. 38 00:03:19,590 --> 00:03:20,820 So the character you. 39 00:03:34,840 --> 00:03:35,380 OK. 40 00:03:46,310 --> 00:03:50,690 So we have successfully imported inverse function from this model. 41 00:03:51,200 --> 00:03:54,970 Now, what I can say is the inverse of equal pay offer. 42 00:03:56,000 --> 00:03:57,290 Now we have got the disvalue. 43 00:03:58,070 --> 00:04:06,190 So it's easy because we are right using the small print numbers and the weak prime numbers have got 44 00:04:06,230 --> 00:04:07,760 to devalue or to underoos. 45 00:04:08,060 --> 00:04:17,120 We want to save frags equals to we need to find that print ciphertext that is ciphertext. 46 00:04:17,480 --> 00:04:25,540 We can use the power function for ciphertext because the power of E and you can also give another argument 47 00:04:25,550 --> 00:04:27,360 to find the models at the same time. 48 00:04:29,300 --> 00:04:31,610 So we have got the let's take this from. 49 00:04:33,790 --> 00:04:39,100 So let me get this in to format and then we need to convert into ASCII format. 50 00:04:40,060 --> 00:04:41,980 So this is the hex format and. 51 00:04:46,870 --> 00:04:54,970 So we need to decode this into the normal ASCII characters, so the graphics. 52 00:05:01,190 --> 00:05:10,140 Good thing we ciphertext whole power, sorry, holper, be worried. 53 00:05:10,400 --> 00:05:11,230 I'm so sorry. 54 00:05:13,010 --> 00:05:16,490 So we have got the string and we can. 55 00:05:22,360 --> 00:05:28,870 OK, this ciphertext be Martin, we got the example from. 56 00:05:34,280 --> 00:05:35,590 So for fragged. 57 00:05:38,010 --> 00:05:38,610 So. 58 00:05:44,980 --> 00:05:54,820 So we need to do more this Dirac's for that, we have to say to you to from the spring onwards. 59 00:05:59,280 --> 00:06:02,720 And what I need to incorporate because I just forgot this one. 60 00:06:05,670 --> 00:06:06,930 Sonatine got its own. 61 00:06:11,980 --> 00:06:13,600 So it is our ardently. 62 00:06:56,220 --> 00:07:00,030 OK, first, let me try to decode this hooks into ASCII. 63 00:07:08,930 --> 00:07:11,390 So I'm using this website and convert. 64 00:07:14,180 --> 00:07:24,370 They want this so they regress, so I don't know why I'm getting this other Trajan's. 65 00:07:28,220 --> 00:07:32,600 Who used to under the core of. 66 00:07:33,480 --> 00:07:37,590 Takes some getting some water, OK? 67 00:07:37,600 --> 00:07:41,330 I have a copy, this is forwarded to this website. 68 00:07:45,700 --> 00:07:54,160 So now you got this city of the you know, the way I see you, so I don't know what this error once 69 00:07:54,160 --> 00:08:02,140 you train your python compiler or interpreter, and then you see if it did not work out this hexadecimal 70 00:08:02,140 --> 00:08:08,050 value into this website, extra ASCII converter online, and then you can just convert that into the 71 00:08:09,580 --> 00:08:10,350 print text. 72 00:08:10,380 --> 00:08:11,590 So this is our friend.