1 00:00:00,090 --> 00:00:07,020 So let's let's let's talk about this base64 encoded, so these are so similar to the ASCII encoding, 2 00:00:07,170 --> 00:00:09,210 but with some modifications. 3 00:00:09,840 --> 00:00:17,120 So in that you can go to one of the characters and we have this special, almost like a tablet space 4 00:00:17,130 --> 00:00:21,960 and not breaking space and newline character and every other stuff. 5 00:00:22,380 --> 00:00:26,240 But this 64 does not care about all the special characters. 6 00:00:26,880 --> 00:00:35,740 This dispositional only cares about uppercase alphabets and also because Alphabet and the numbers and 7 00:00:36,210 --> 00:00:37,900 it would also care for this person. 8 00:00:38,150 --> 00:00:42,850 And so all these characters are considered into this basic question. 9 00:00:43,050 --> 00:00:47,180 And you can see here the index starts from zero to 63. 10 00:00:47,190 --> 00:00:50,970 So these are the 64 values and the current binary number. 11 00:00:52,140 --> 00:01:00,990 So in the format and the character is yet so in the base, which determines you in a similar way, one 12 00:01:00,990 --> 00:01:04,170 means B and two, Mincy three and so on. 13 00:01:04,170 --> 00:01:12,210 Up to now we have this opportunity, we have the uppercase and from 26 we have to solve it. 14 00:01:12,840 --> 00:01:17,670 And 26 year old B and C and so on and up to 50. 15 00:01:18,840 --> 00:01:22,130 We have the R opposition to this. 16 00:01:22,290 --> 00:01:29,190 Of it from 52 onwards, we will have the numbers up to 61 because these are the numbers and across this 17 00:01:29,190 --> 00:01:30,530 press and around. 18 00:01:30,570 --> 00:01:32,040 So including base64. 19 00:01:33,460 --> 00:01:41,420 So you can see there is a column called Paddy is Equal to, so we look at this by seeing an example. 20 00:01:41,860 --> 00:01:49,570 So what this basic issue for us is, if you have any paragraph to encode or a sequence of events, then 21 00:01:49,570 --> 00:01:55,900 it would take three or four minutes at a time like three characters, and then they will be converted 22 00:01:55,900 --> 00:01:57,740 into the ASCII binary format. 23 00:01:58,300 --> 00:02:00,150 So let me open this ASCII. 24 00:02:00,490 --> 00:02:01,330 They will also. 25 00:02:05,540 --> 00:02:15,500 So if I say you're creating, the current binary number will be drawn from this dismal 64 and then in 26 00:02:15,500 --> 00:02:22,670 the same way we will take three rebate's as a group and then these each word consist of eight bitrate. 27 00:02:23,330 --> 00:02:27,760 And in these eight, which if you combine three bites, we get confirmed. 28 00:02:28,580 --> 00:02:30,090 So 18 to 324. 29 00:02:30,140 --> 00:02:35,830 So in the best 64, what we are going to these will take six, which at the time and we will get for 30 00:02:35,830 --> 00:02:39,480 various four because twenty four by six it's four. 31 00:02:39,500 --> 00:02:47,450 So for each three characters we will write the basic three, four, four, four characters. 32 00:02:47,780 --> 00:02:51,850 So if this seems consuming or sorry if it seems confusing. 33 00:02:52,400 --> 00:02:58,580 So I start to request pretty, I want to make this right, but this Wikipedia has this good table and 34 00:02:58,580 --> 00:02:59,880 also they have mentioned the example. 35 00:03:00,170 --> 00:03:03,810 So that's why I thought I wanted to show you these examples. 36 00:03:04,130 --> 00:03:09,790 So this is a paragraph or a plain text I want to convert and managed to distinguish. 37 00:03:09,840 --> 00:03:11,310 Let's take a look at this man. 38 00:03:11,340 --> 00:03:12,980 And after this, busy. 39 00:03:12,980 --> 00:03:13,230 Sure. 40 00:03:13,550 --> 00:03:14,350 We get this one. 41 00:03:15,410 --> 00:03:15,820 All right. 42 00:03:15,830 --> 00:03:19,140 First I told it, then this is what we need to take. 43 00:03:19,140 --> 00:03:22,170 Three three characters are based at a time. 44 00:03:22,670 --> 00:03:25,840 So the first group is meant yum yum. 45 00:03:26,450 --> 00:03:32,830 So in cafetorium, in the Exodus model representation for Captain Eskies 40. 46 00:03:33,170 --> 00:03:37,530 So if we convert that into the eight bits, you get this one. 47 00:03:38,210 --> 00:03:42,020 So these are the eight bits contributing to. 48 00:03:42,590 --> 00:03:47,430 And these are the eight bits from here and the other eight bits of it. 49 00:03:47,540 --> 00:03:52,640 So how we got this a bit, you can just look at this and you can convert this, this model to binary. 50 00:03:53,360 --> 00:03:54,150 We get these three. 51 00:03:54,320 --> 00:03:59,040 So these three eight bit can contribute. 52 00:03:59,270 --> 00:04:03,800 Twenty four bits, eight eight eight point four consists of 24 bits. 53 00:04:04,170 --> 00:04:15,360 And now we're going to divide this into four parts because it's two six and basically two four six four. 54 00:04:15,590 --> 00:04:17,270 That's the maximum length. 55 00:04:17,270 --> 00:04:18,940 We can increase six bits. 56 00:04:19,430 --> 00:04:21,290 Let's take five to six bits. 57 00:04:22,280 --> 00:04:27,050 And then you need to look at this 19 in our inaudible 60-40. 58 00:04:27,230 --> 00:04:34,670 So if you take a look at this point in it, so write down and take for the next six with the next six 59 00:04:34,670 --> 00:04:36,130 weeks, five and four to six. 60 00:04:36,140 --> 00:04:40,240 And look at this decimal value in this base64 table. 61 00:04:40,520 --> 00:04:42,590 Look at the speed of you. 62 00:04:44,370 --> 00:04:51,790 OK, now what if we have some intervening characters so we do not have any multiple of three. 63 00:04:51,800 --> 00:04:58,520 Wait, what if we have only two bits so we can convert in the same way? 64 00:04:58,530 --> 00:05:00,890 But we will add this is equals two. 65 00:05:00,920 --> 00:05:08,840 You can see here there is a padding and this padding is added at the end to match the particular to 66 00:05:08,890 --> 00:05:10,950 equal the particular number of bits. 67 00:05:11,810 --> 00:05:18,010 So you add to deros as a padding and you can convert this one and you get the four and the tea and you 68 00:05:18,010 --> 00:05:19,920 will add the very end the same way. 69 00:05:19,920 --> 00:05:26,120 If there is only one bite, you will convert that into the eight bits and then you will add very first 70 00:05:26,120 --> 00:05:26,770 six bits. 71 00:05:27,260 --> 00:05:31,710 Consider the 19 and then we have a little bit training for our film. 72 00:05:32,870 --> 00:05:36,410 So you what you want to do is you put the four zeroes because we need the. 73 00:05:37,430 --> 00:05:39,110 I mean, six bits. 74 00:05:39,110 --> 00:05:39,380 Right? 75 00:05:39,920 --> 00:05:42,430 Already there are two which you need to put the forward. 76 00:05:42,710 --> 00:05:45,250 And if you put the zero right, you get the sixteen. 77 00:05:45,260 --> 00:05:53,240 And after looking at that cuttable so whatever you get the Q and this one, these bits are empty so 78 00:05:53,240 --> 00:05:55,130 you can put the padding. 79 00:05:56,090 --> 00:05:57,760 So as is equals two. 80 00:05:58,250 --> 00:06:05,770 So if you want one to remember that this is the basis for encoding, you can normally see that is equals 81 00:06:05,810 --> 00:06:08,460 to at the end of the anchorage. 82 00:06:11,480 --> 00:06:18,500 OK, now let me call this you need to remember all these manual encodings, you need to do it manually. 83 00:06:18,500 --> 00:06:19,990 There are online tools for this. 84 00:06:20,360 --> 00:06:20,950 It's. 85 00:06:23,290 --> 00:06:26,320 Base64, OK, was he foreign currency? 86 00:06:27,430 --> 00:06:33,210 Now I want to get to this because I want to parachute in here and I want to go it. 87 00:06:34,640 --> 00:06:42,420 So as you can see, we have got this plain text, which is this one, so this is the very simple encoding 88 00:06:42,440 --> 00:06:43,700 you can do. 89 00:06:44,030 --> 00:06:50,180 And if you put in a city of challenges, this will be the basic challenge you can get in the city of 90 00:06:50,180 --> 00:06:50,660 challenges. 91 00:06:50,660 --> 00:06:57,510 Even though they did not ask you this very quickly for 10 or 15 points, they will include this anchoring 92 00:06:57,530 --> 00:07:00,140 somewhere in the middle of some value. 93 00:07:00,530 --> 00:07:05,990 So you can you need to decode this to another value and you can work on that value to get the plaintext 94 00:07:05,990 --> 00:07:06,860 or some other value. 95 00:07:07,220 --> 00:07:11,240 So this is one of the important Anchalee.