1 00:00:04,970 --> 00:00:07,880 Authentication mechanisms. 2 00:00:09,050 --> 00:00:09,660 Hi, everyone. 3 00:00:09,730 --> 00:00:16,010 Today, we're going to talk about authentication and I will explain what it is and then we're going 4 00:00:16,010 --> 00:00:22,470 to, of course, do some python tests and write the scripts in order to do authentication with Python. 5 00:00:22,760 --> 00:00:33,050 I guess some of you might know some things about authentication, but the most simple way to expand 6 00:00:33,050 --> 00:00:40,460 is, for example, sometimes if you want to log into your account, you will need an authentication 7 00:00:40,460 --> 00:00:45,290 app in order for you to have to have verification of yourself. 8 00:00:45,320 --> 00:00:51,470 So this is a more secure way to assess your Web, credit those over the Web or over the network. 9 00:00:51,920 --> 00:01:01,700 Authentication supports natively HTP protocols and intercepts, both types of basic HTP and that they 10 00:01:01,700 --> 00:01:02,910 just htp. 11 00:01:03,410 --> 00:01:15,230 So the basic HTP authentication is based on the Base 64 protocol and usually is composed by two things 12 00:01:15,290 --> 00:01:17,100 user and password. 13 00:01:17,120 --> 00:01:18,910 And this is your username and password. 14 00:01:19,130 --> 00:01:24,920 You know, you can always see your passport written by dots, so you cannot actually see what you're 15 00:01:24,920 --> 00:01:25,310 writing. 16 00:01:25,550 --> 00:01:32,420 So the authentication mechanism is just the way that you're seeing Callcredit those and it defines what 17 00:01:32,420 --> 00:01:34,640 is password, what's its user username and so on. 18 00:01:34,910 --> 00:01:39,680 The other HTP mechanism for authentication is the HTP. 19 00:01:39,680 --> 00:01:40,790 They just mechanism. 20 00:01:41,000 --> 00:01:49,430 And this mechanism used in the five encryption protocols to encrypt the user details with Python, it 21 00:01:49,430 --> 00:01:56,150 is actually very easy to access authentication modules and you can do this usually with the request, 22 00:01:56,160 --> 00:02:03,180 the library, and from there you can access both the basic and they just authentication algorithms. 23 00:02:03,710 --> 00:02:07,450 So let's first talk about the basic authentication. 24 00:02:07,670 --> 00:02:16,390 The best way to out the indication assumes that the client is identified only by username and password. 25 00:02:16,790 --> 00:02:22,850 So in order for the client to assess the website or the page over the web, he needs to provide both 26 00:02:22,850 --> 00:02:25,140 of those great docs and in order to do that. 27 00:02:25,520 --> 00:02:34,040 So once you request a server to log in, the server usually responds with the connection to the base64 28 00:02:34,040 --> 00:02:42,260 encoding and gives you the fields where you can write your credit or as we said, username and password 29 00:02:42,890 --> 00:02:43,760 on their site. 30 00:02:43,760 --> 00:02:51,200 The date just authentication is created after the base authentication and is usually used to improve 31 00:02:51,200 --> 00:02:57,440 and it usually encrypts all the information with an algorithm code and give five. 32 00:02:57,740 --> 00:03:05,510 It was a key and the rail in order to encrypt your data so that they just authentication extends the 33 00:03:05,510 --> 00:03:13,680 basic one by using one way hashing cryptographic algorithm in order to protect your credit those. 34 00:03:14,330 --> 00:03:21,960 So it first encrypts the authorization information and then it adds a unique connecting value. 35 00:03:22,590 --> 00:03:31,790 This value is used by the client browser in order to calculate the possible response in a hash format. 36 00:03:32,390 --> 00:03:38,120 So your password is not directly related to you, but needs to be calculated by the algorithm in the 37 00:03:38,120 --> 00:03:38,570 return. 38 00:03:39,080 --> 00:03:41,760 This extra level of safety. 39 00:03:42,020 --> 00:03:43,740 Why are we using Callcredit those? 40 00:03:43,880 --> 00:03:50,750 So this was the introduction to the authentication mechanisms in the in the next lecture, we're going 41 00:03:50,750 --> 00:03:52,370 to assess them by using Python. 42 00:03:52,700 --> 00:03:53,130 That's it. 43 00:03:53,150 --> 00:03:57,470 Guys, thanks very much for watching this video and I'll be waiting for you in the next one.