Now they'll be starting a three methods that we need to create or generate a password.
But before we do that, let's import the characters because once we begin, our password generation
would be needing them.
Our numbers, Arabic letters, lowercase letters, especially letters.
So first, let me put all of these.
So you want a no and.
Uppercase letters, as well as a lowercase letters and then special characters.
And they are all coming from.
Our characters.
So, yeah, we're importing them.
Now we need to use them inside a file.
So let's start creating a handle, generate password.
First, there's going to be a statement that is going to check whether a user has checked in all of
uppercase lowercase numbers as well as our symbols.
That basically means for the user of the uppercase letter in their passwords or the lowercase letter
in their passwords or their numbers and their passwords, or the symbols in their passwords.
So let's check that if uppercase is not present, that means if a user has uncheck that uppercase and
then the ampersand.
And if a user has unchecked lowercase.
And then the balance wasn't.
If a user has unchecked the numbers and then the well, I'm present, if a user has entered the assemblage.
So basically what this means is that if a user has injured all of them, then we want to give user a
prompt that you must select at least one of the options.
So let's give it an alert.
And you must select.
At least one option.
Now they are going to put it up with Notepad so that we get are close to where they are, but for now,
let's just leave it as an alert.
So if a user has erected none of them, then we want to say that, hey, you have to select one of them.
Then after this, if let's create a let keyword and it's going to be lit and characters, it's.
Director list, and this is going to be initially initialized to an empty string.
Now after this.
What we want is that we will be checking what a user has checked in.
So if a user has do uppercase letters, then we want to add in a character list.
Uppercase letters or character list equals two character list plus uppercase letters.
So this uppercase letters are the ones that we're importing from our characters.
So we want to add all of the uppercase all this and this entire string into our character list.
Now, after this, if a user has even that a lowercase, then we want to add all the located inside
the catalyst, that means that we want to add this entire string of lowercase letters into a catalyst.
Eddie Warren was his string catalyst.
Plus equals lowercase letters.
And if a user has selected a numbers.
Then what they want is that we want to add all the numbers that we're getting, so catalyst.
Plus equals no.
So this is the number that we are actually getting from our characters, so this is the number that
we are receiving from our characters.
So here is a number that at distances that consisting of from zero to nine.
So now we have added our numbers.
And if I use it has selected, I mean, these are symbols.
A symbol is true, then what we want is that we want to add in a inherited list all the symbols that
again in the special characters.
So now we'll be adding a special characters, so our catalyst variable, as it is now at this consisting
of all the numbers, all uppercase letters, all the lowercase letters and all the special characters.
And obviously does.
Anyone does not want this type of password, right?
They want it to be strong, but not this lending at all.
After this symbol, we're going to assign a password, so we'll be setting up a password.
Which is going to call up our password creator.
That is going to create a password, according to length specified by the user.
So now we'll be setting up a password that is going to call our password creator.
Password creator and password creator is being passed that catalyst.
So let's look at the list.
OK, so now we're done.
So now will be adding code to a password creator.
So let me just head down.
So now this password creator is going to take up one argument that is going to be a catalyst.
So it is taking up a catalyst now, what it is going to do, it is will defining elect such as password.
So this password is going to be equal to an empty string for now.
So this is basically going to be a condensed form of a catalyst according to the numbers of characters
that we want in a password.
So now let's create a contest and this list, which is going to equal to be totally startling.
So we wanted to be able to add catalyst.
So what they're going to do is assign a constant and give it the value of that land, so this is going
to be equal to catalyst land.
No, close it.
Now what they want is that we want that, if you will, creating a follow-up.
And this follow up is going to contain a left eye, which is going to be equal to zero.
Now, even that should always be equal to password or password land.
Now what this president is, if you just head up, so this is the password length we want always to
be less than password length, which initially is 20.
So let me just go back to the password length.
We want it to be always less than password length.
And then after this will be incrementing five.
So let's increment I plus.
So for every iteration, we raised less than apart password, then they want to create a concert and
this is going to be called as character index.
So.
Character Index, which is going to be able to get random index, so here we are getting a third method
can get random index.
So basically, this is going to generate a random index for our entire blend of character, Lesterland.
So let's land now.
So now we are calling our third method you get random index.
And after this, what you want to do is that we want to create a password.
So we want to assign a password, which is going to be equal to password plus.
Character list.
Not guard at.
Get index.
So it should be a catalyst.
Catalyst that got indexed, so now it's time to create a third method that is going to create a random
index for a password.
So let's create a third method and this is going to create a random index.
So it is going to take up an argument that is going to be limited.
So as you might see that what we're passing, we're here to try to do a random index, we're passing
a little and so we want the limit to be secured away.
So you wanted it done.
Matt, the drone.
Now, this round is going to take up Matthew Todd Random.
Which, in turn, would be multiplied by its limit.
So these are the three functions that is going to help us generate a password.
Now let us take a look at them again.