So now we'll create another example of a brute force technique in scissors.
OK, so let us close down this.
And in our main potential, we'll go for a new fight and we'll define here.
One constant, say, Max, key size that's equal to we are giving a limit of twenty six.
Then we are defining a method that is get more so in this particular, get more mature.
We will see while true and we are going to put into foster message, say do you wish to see, encrypt
or decrypt or C brute force of.
We are going to ask a particular user, what does he do when we accept that value in simplicity, our
variable, which is equal, do we say input dot except it didn't lowercase, since we're using lower,
then we check if the mood estie are in it.
Potosí encrypt E decrypt D Route B dot.
We you split a split basically evenly split and check whether it is encrypted or it is E or it is decrypted.
Is the order this group or B find.
Then we want to say here Silvertone more zettl is.
We only use your print and see enter.
Either C entrapped or E or the or decode or.
They brought me.
So basically, we are going to give a user that what we wish to end up that is if we are not able to
understand, then in that case, OK.
Now, after this, we'll go back to our definition and we will find another method to SEGERT.
Message is ended this we are going to just use our print and give the end of your message, OK?
And then we are going to see the total value of input.
After that, we say another matter.
Segert he SDR.
And in this, we would define ATSDR zero, then run a loop till it is true and you'll be able to see
into the.
No.
OK.
And you say you want to interview one and we will be presenting you in the string format, the value
of Max, the size that we have already defined it about.
OK, so after this, we will say he is equal to or he is.
That is what we have taken.
So that is equal to we convert to integer the value of whatever the input user gives.
Then we check if the.
He still is more than equal to one and the key is still is less than equal to the max.
On that score, he and the score sighs and if it does, then we reckon he is still OK.
Now, after this particular function, we go back for another definition of, say, get translated,
message STF.
And here we are passing the move still.
The.
Message still and the stories, the ones so here we check if the mood is equal to or the mood is always
equal to zero zero is equal to the whole.
We see the keister is equal to minus hastier and.
We have another variable to translated year that's.
Then we created for a spike in our message SDR and here check if why m dot C is.
Ali, formatter, then we do, and you name one that's equal to use audio of swim.
Then we say no one is equal to be is still.
After which we check.
If the SVM is up or if it is reduced and if another with no more than the order of Capital Z, if this
is also true, we make no minus is equal to twenty six.
That is number one in this case, after which we go for the.
It is a fact.
OK, and here we check if the value of no one is less than the awarding of Capital eight, then we make
no losses equal to twenty six.
Now we go for the upper if it is condition and here which is the symbol that is lower than in that case,
we check again for number.
If it is more than equal to or more than the capital Osman's it then we make no minus is equal to twenty
six.
Then again, as if no less than the order of small.
Then again, we would be making no less is equal to twenty six.
And then we go one level back and here we see the translated SDR losses equal to convert to God, the
value of numbers.
Now, here we come for the if condition, which is declared over here.
So let's go one more back.
And here we declare the end support for the evil if condition.
And in this is what we see.
The translated SDR are is equal to the value of its Y.
Finally, we see the value of translated ASTM and we in the metal.
Now one thing, we have made a mistake.
This will be over here.
So all will be one level back.
Even this will be.
One liberal back.
The alignment would change again, this.
OK, similarly here also we'll have to change the level of.
Same goes for here.
This will be for Insaaf part.
This is for number one, and again, this will be for the outer if coalition.
So, again, for outer, if we will have enough and we'll have there is also.
So let us just change it.
We have missed one 11 there again, this would come for the INS.
Now, this will be for the upper if condition.
And finally, we are supposed to return it over here.
So now it becomes rubble.
After this, we go back and let's right down here say more.
Now, we have taken the values more.
OK, so that is just tracheas.
So we make Modesta is equal to we call them a get more.
It is the same method that we have created.
OK, so then we see the message is year.
That's equal to get messages.
D-R method is to be called.
Then we check if Modeste are at the index.
Zettl is not equal to say V, then we say the dear is equal to get.
Now, here also we have get stuff that's metal and finally then we say print, see, your translated
text is and below this, we go for checking if more of the index is not equal to me, then you print,
get the
translated
message is still very we are passing Monastir, we are passing messages here and we are passing our
values, as we say, or the key is still in the range of one.
Still say the max, the size that we have defined plus one, OK, because we want to include twenty
six in that, hence we are making it last month.
Then we are seeing here print the value of yesteryear and get translated messages to see decrypt.
Then you print your messages and you are OK with this.
Let us see this.
See as.
Demo nine, for example, don't be OK and let us try to execute this first we give we want to encourage
OK.
Oh, no.
Basically, in this little skeptical that we have little Yamhill, we have no conflict on Modesta,
OK, that is one thing that is also check below.
You'll be seeing more.
This is equal.
Going to get more.
OK, well, again this year.
So now that save it.
And let's try to run this if we wish to encrypt the message first, OK?
We enter, we want to encrypt civil war fighting with the key 40.
We are having some issue and translate it is fine.
Let's check this.
Maybe there is some spelling mistake that we have written for translated STF.
OK, so this is your is we have to find translators dear.
And here we are just incrementing the value of translators so.
The message that is get translated message is.
Is the one that we have to find one and possibly more to steal the messages here and the key is up and
we would be similarly passing it over here.
Also, would the water decrypt in this case, the small and the message and the key is, OK, let us
run this again, see if we wish to encrypt.
Fighting with the key 14, OK?
Let's go back here and we are checking this over here in the if then we are making this plus is equal
to twenty six, then we make translated as the plus is equal to the God value in the bracket number.
OK, similarly, if we see pluses equal to the value of X Y and that looks good and then we return the
value of translated stuff, we are getting your error on line number forty five other ways you can actually
go to line C.
Forty five that is over here.
So.
Now, this again for you, there is no mistaking the.
Typing issues, OK, we're supposed to find it here because this condition ends here and then we find
this translator last year.
So let us run this again and we wish to encrypt the war, fighting with the key for 40.
Now, this is what is our translated text coming.
Now, if we select this, OK, we go back here and we again run this.
And this time we say we want to go for not encephalogram, but we want to go for broke, and this is
our message.
So you will find in all the keys and what key we had used, we had whiskey, number 40.
So on number 14, we get the value by pended.
Similarly supples, you go back, you you run this.
Now you say you wish to decrypt it.
OK, and you won't repeat the same message, you won't regret using the key for you'll get the same
translated text, but when you go for a brute force option, that you'll get it encrypted or decrypted
in all the twenty six keys that you are having and you will get the correct word, which you have already
encrypted on that particular Kubicki you had used.
OK, so another example that we have seen the use of brute force to get the values on what we have encrypted
a particular message.
We would again get the same message decrypted on the same Guedes.
OK, so that's it from the session that we have seen one extreme example on how to create a false attack
example using scissors.
So we have merged all the examples together so that it can also encrypt.
You can also decrypt that or we can also use the brute force technique to see the decrypted text find.
So that's it from the issue.
Thank you.