1
00:00:00,940 --> 00:00:05,560
Now they'll be starting a three methods that we need to create or generate a password.

2
00:00:05,890 --> 00:00:11,170
But before we do that, let's import the characters because once we begin, our password generation

3
00:00:11,170 --> 00:00:11,980
would be needing them.

4
00:00:12,500 --> 00:00:17,380
Our numbers, Arabic letters, lowercase letters, especially letters.

5
00:00:17,710 --> 00:00:19,660
So first, let me put all of these.

6
00:00:24,100 --> 00:00:27,190
So you want a no and.

7
00:00:30,050 --> 00:00:37,580
Uppercase letters, as well as a lowercase letters and then special characters.

8
00:00:40,860 --> 00:00:42,720
And they are all coming from.

9
00:00:46,410 --> 00:00:47,340
Our characters.

10
00:00:48,540 --> 00:00:49,650
So, yeah, we're importing them.

11
00:00:49,920 --> 00:00:51,780
Now we need to use them inside a file.

12
00:00:52,620 --> 00:00:55,080
So let's start creating a handle, generate password.

13
00:00:57,380 --> 00:01:02,480
First, there's going to be a statement that is going to check whether a user has checked in all of

14
00:01:03,050 --> 00:01:05,940
uppercase lowercase numbers as well as our symbols.

15
00:01:06,350 --> 00:01:11,780
That basically means for the user of the uppercase letter in their passwords or the lowercase letter

16
00:01:11,780 --> 00:01:15,290
in their passwords or their numbers and their passwords, or the symbols in their passwords.

17
00:01:15,710 --> 00:01:23,930
So let's check that if uppercase is not present, that means if a user has uncheck that uppercase and

18
00:01:23,930 --> 00:01:24,890
then the ampersand.

19
00:01:26,360 --> 00:01:29,630
And if a user has unchecked lowercase.

20
00:01:35,540 --> 00:01:36,890
And then the balance wasn't.

21
00:01:43,470 --> 00:01:49,920
If a user has unchecked the numbers and then the well, I'm present, if a user has entered the assemblage.

22
00:01:51,240 --> 00:01:57,090
So basically what this means is that if a user has injured all of them, then we want to give user a

23
00:01:57,090 --> 00:02:01,620
prompt that you must select at least one of the options.

24
00:02:01,710 --> 00:02:02,850
So let's give it an alert.

25
00:02:03,950 --> 00:02:06,230
And you must select.

26
00:02:09,170 --> 00:02:11,960
At least one option.

27
00:02:14,490 --> 00:02:19,200
Now they are going to put it up with Notepad so that we get are close to where they are, but for now,

28
00:02:19,200 --> 00:02:20,760
let's just leave it as an alert.

29
00:02:21,240 --> 00:02:26,940
So if a user has erected none of them, then we want to say that, hey, you have to select one of them.

30
00:02:27,810 --> 00:02:34,320
Then after this, if let's create a let keyword and it's going to be lit and characters, it's.

31
00:02:36,340 --> 00:02:42,700
Director list, and this is going to be initially initialized to an empty string.

32
00:02:44,170 --> 00:02:44,950
Now after this.

33
00:02:47,260 --> 00:02:51,130
What we want is that we will be checking what a user has checked in.

34
00:02:51,490 --> 00:02:58,600
So if a user has do uppercase letters, then we want to add in a character list.

35
00:02:59,770 --> 00:03:04,210
Uppercase letters or character list equals two character list plus uppercase letters.

36
00:03:04,780 --> 00:03:08,260
So this uppercase letters are the ones that we're importing from our characters.

37
00:03:08,770 --> 00:03:14,050
So we want to add all of the uppercase all this and this entire string into our character list.

38
00:03:15,270 --> 00:03:22,520
Now, after this, if a user has even that a lowercase, then we want to add all the located inside

39
00:03:22,550 --> 00:03:28,210
the catalyst, that means that we want to add this entire string of lowercase letters into a catalyst.

40
00:03:28,270 --> 00:03:31,310
Eddie Warren was his string catalyst.

41
00:03:33,030 --> 00:03:36,000
Plus equals lowercase letters.

42
00:03:37,020 --> 00:03:41,040
And if a user has selected a numbers.

43
00:03:42,310 --> 00:03:46,510
Then what they want is that we want to add all the numbers that we're getting, so catalyst.

44
00:03:48,200 --> 00:03:50,300
Plus equals no.

45
00:03:51,170 --> 00:03:55,250
So this is the number that we are actually getting from our characters, so this is the number that

46
00:03:55,250 --> 00:03:57,290
we are receiving from our characters.

47
00:03:57,620 --> 00:04:02,080
So here is a number that at distances that consisting of from zero to nine.

48
00:04:02,840 --> 00:04:04,280
So now we have added our numbers.

49
00:04:04,460 --> 00:04:10,490
And if I use it has selected, I mean, these are symbols.

50
00:04:10,520 --> 00:04:15,860
A symbol is true, then what we want is that we want to add in a inherited list all the symbols that

51
00:04:15,860 --> 00:04:17,240
again in the special characters.

52
00:04:18,770 --> 00:04:24,830
So now we'll be adding a special characters, so our catalyst variable, as it is now at this consisting

53
00:04:24,830 --> 00:04:30,560
of all the numbers, all uppercase letters, all the lowercase letters and all the special characters.

54
00:04:30,800 --> 00:04:31,760
And obviously does.

55
00:04:31,820 --> 00:04:33,830
Anyone does not want this type of password, right?

56
00:04:34,580 --> 00:04:37,100
They want it to be strong, but not this lending at all.

57
00:04:37,480 --> 00:04:43,430
After this symbol, we're going to assign a password, so we'll be setting up a password.

58
00:04:44,560 --> 00:04:47,020
Which is going to call up our password creator.

59
00:04:47,230 --> 00:04:51,340
That is going to create a password, according to length specified by the user.

60
00:04:51,700 --> 00:04:56,320
So now we'll be setting up a password that is going to call our password creator.

61
00:05:00,520 --> 00:05:04,630
Password creator and password creator is being passed that catalyst.

62
00:05:04,660 --> 00:05:06,340
So let's look at the list.

63
00:05:06,850 --> 00:05:07,750
OK, so now we're done.

64
00:05:08,050 --> 00:05:11,080
So now will be adding code to a password creator.

65
00:05:11,180 --> 00:05:12,340
So let me just head down.

66
00:05:15,750 --> 00:05:21,330
So now this password creator is going to take up one argument that is going to be a catalyst.

67
00:05:23,000 --> 00:05:29,780
So it is taking up a catalyst now, what it is going to do, it is will defining elect such as password.

68
00:05:30,590 --> 00:05:34,360
So this password is going to be equal to an empty string for now.

69
00:05:35,150 --> 00:05:40,040
So this is basically going to be a condensed form of a catalyst according to the numbers of characters

70
00:05:40,040 --> 00:05:41,150
that we want in a password.

71
00:05:41,690 --> 00:05:50,720
So now let's create a contest and this list, which is going to equal to be totally startling.

72
00:05:50,740 --> 00:05:53,060
So we wanted to be able to add catalyst.

73
00:05:55,850 --> 00:06:02,060
So what they're going to do is assign a constant and give it the value of that land, so this is going

74
00:06:02,060 --> 00:06:03,430
to be equal to catalyst land.

75
00:06:04,570 --> 00:06:05,420
No, close it.

76
00:06:05,630 --> 00:06:09,740
Now what they want is that we want that, if you will, creating a follow-up.

77
00:06:09,740 --> 00:06:15,040
And this follow up is going to contain a left eye, which is going to be equal to zero.

78
00:06:17,080 --> 00:06:21,830
Now, even that should always be equal to password or password land.

79
00:06:22,150 --> 00:06:27,310
Now what this president is, if you just head up, so this is the password length we want always to

80
00:06:27,310 --> 00:06:30,600
be less than password length, which initially is 20.

81
00:06:31,840 --> 00:06:34,270
So let me just go back to the password length.

82
00:06:34,630 --> 00:06:36,940
We want it to be always less than password length.

83
00:06:36,970 --> 00:06:39,910
And then after this will be incrementing five.

84
00:06:40,600 --> 00:06:43,870
So let's increment I plus.

85
00:06:45,280 --> 00:06:51,400
So for every iteration, we raised less than apart password, then they want to create a concert and

86
00:06:51,400 --> 00:06:53,890
this is going to be called as character index.

87
00:06:54,530 --> 00:06:54,910
So.

88
00:06:55,980 --> 00:07:02,910
Character Index, which is going to be able to get random index, so here we are getting a third method

89
00:07:02,910 --> 00:07:04,080
can get random index.

90
00:07:05,160 --> 00:07:12,230
So basically, this is going to generate a random index for our entire blend of character, Lesterland.

91
00:07:12,720 --> 00:07:14,340
So let's land now.

92
00:07:15,450 --> 00:07:19,860
So now we are calling our third method you get random index.

93
00:07:20,250 --> 00:07:24,180
And after this, what you want to do is that we want to create a password.

94
00:07:24,600 --> 00:07:31,170
So we want to assign a password, which is going to be equal to password plus.

95
00:07:32,550 --> 00:07:33,450
Character list.

96
00:07:36,870 --> 00:07:38,970
Not guard at.

97
00:07:41,610 --> 00:07:42,560
Get index.

98
00:07:48,820 --> 00:07:50,020
So it should be a catalyst.

99
00:07:53,410 --> 00:07:58,810
Catalyst that got indexed, so now it's time to create a third method that is going to create a random

100
00:07:58,810 --> 00:08:00,160
index for a password.

101
00:08:00,880 --> 00:08:04,460
So let's create a third method and this is going to create a random index.

102
00:08:04,460 --> 00:08:07,780
So it is going to take up an argument that is going to be limited.

103
00:08:09,990 --> 00:08:14,820
So as you might see that what we're passing, we're here to try to do a random index, we're passing

104
00:08:14,820 --> 00:08:17,840
a little and so we want the limit to be secured away.

105
00:08:19,860 --> 00:08:20,850
So you wanted it done.

106
00:08:23,970 --> 00:08:25,650
Matt, the drone.

107
00:08:28,560 --> 00:08:31,020
Now, this round is going to take up Matthew Todd Random.

108
00:08:35,460 --> 00:08:38,640
Which, in turn, would be multiplied by its limit.

109
00:08:42,010 --> 00:08:45,640
So these are the three functions that is going to help us generate a password.

110
00:08:45,940 --> 00:08:47,650
Now let us take a look at them again.
