Hello and welcome back.
In this video, I will show you how to analyze this call and solve it.
In the previous lesson, we have already determined that.
The.
Streamlined with a strict the length of the passport which you keep in.
So the light variable, which for the remaining two stars, the length of the of which you kicked in
in in this line, he compares whether it is less than five.
So if your passport length is less than five, he will show the message.
We never use a password that short.
And that is what happened in this example when the a password length of only three characters each.
This message.
That suggests that the password is five characters or more, and so in this next session here, we tried
the password, which is more than five characters.
This time, he got a different message.
So.
He went on into the air spot and did some checking.
And this time when he checked your password, he was checking to see whether the first character after
password begins the letter H and whether the fifth character of the password begins with the letter
you.
So this is the first character.
This is the first character of the password, and this is the fifth character after password.
Let me explain how it works using not pay.
When you enter your password, it will be stored in Hungwe.
One.
Assuming the opportunities aye, aye, aye, aye, aye.
The first character on the Facebook, he's outby one zero.
Let me use a different password.
Let's say you have entered ABC and he saw the first character of the password is a character, a the
second character of the password is actually one one, which is B, the third character of the password
is ugly one two, which is C.
The fourth character of the password is Upwey.
One and three.
Which is De.
And.
The fifth character of the password is actually one four, which is E!
This is the notation in C language for two dimensional array, a two dimensional array is just an array
of strings.
So the first string is actually zero, which is the name of the program, which is C two.
So actually zero is the name of the program itself.
Itself.
That is how it works and to make it complete, I would just like to.
So in this correct me actually, two, because it has two parameters, C2 and the string for your password.
And then in the string itself, there is.
Two strings, the name of the program is the first three, which is ArcView zero, and it is C to this
case, whilst the second parameter, the second string is the one which is a password you key in in
this case, an example of be ABC, assuming that's assuming you had you had type A, B, C, D, E.
So this is the meaning.
Well, Occy.
And we saw in this case in line 15, after he has confirmed that you have quién password of at least
five characters, he went on to check whether your first character is Hajj.
But notice here, he doesn't use the one zero.
Huckabee, one zero is supposed to refer to the first character.
Instead, he uses a stye front.
It is actually the same thing, so another way to refer to the first character of a string is to use
Estyn front harkavy one.
So this also refers to the first character on the string is the same thing.
Then this is the logical end operator in means that move this condition and also the second condition
must be true before the whole expression is true.
So the first character must be H and the fifth character must be you.
So for here.
Refers to the fifth character.
Not the fourth character, why?
Because in C a race.
The first element of the array begins with zero.
So the fifth element will be for so the first character of the string is element zero, whilst the fifth
element of the string is element for.
So this suggests that it is trying to check whether your password that you enter has hit you and you
in the first character and fifth character, so the password should be any password with the first character
each and the fifth character you.
So you can type in any kind of password, for example, five characters, along with the first character
age, the second character can be anything you want.
By the fifth character, must be a new.
So this is the password, let us check to confirm that is correct.
So we are going to you now.
Each has a first character followed by.
And the fifth character we are going to put you into and we get a message saying it is correct, maybe
we should pay attention to more characters.
So this train is coming from here.
So if you had entered the correct password that satisfies the length of at least five characters and
also the first character must be H 55 character, you then this condition is met and you put the string
correct.
Maybe you should pay attention to Margaritis.
So this is how we analyze and reverse and analyze, correct me, in Guéra.
I hope this was easy to understand, and that's all for this video.
Thank you for watching.