So the first thing we will have to import over here is.
Let's see Paperclip, then we want this and we want random.
OK, now we want later this year.
Now here we are storing all letters in capital C, d, e, f, g, h, i j k lemon.
You are estie u v, w, x, y, z.
And now we'll start with the definition for me in which we are creating my messages is equal to we are
giving here some text.
See, this is fighting.
Packing.
Intermediate level course we are.
Let's take a 10.
Triplicates.
Yes, we are doing a simple.
Institution safe, for example, when we are.
Writing a dummy text to.
And using some random.
Characters.
So let us write down the stakes, which we want to interpret.
OK, now, after writing this, the next thing is we would create Mikey STF and give you the key value
that we are using that it should be all six characters, but in a different order.
So let us take that out of your my you is the key element X.
The.
The D. c. ah g.
T q we have not used Q We have used okay then that sticky g h and finally CID's it and then we are taking
my Monastir variable which is over here.
We are putting that excess and drip.
If we want to be prepared, we will have to send this over here to the currently we are doing an encryption
method.
OK, so here we check.
If we see this, we will be creating below the metal that this thicky is valid SGA and we are going
to pass here my ETR as the parameter.
And if this is valid, then we see this exit saying there is an error in the key or symbol set.
Then the next thing we will have to check is, is your mind, Modesta, if it is equal to any group.
Then we are creating a translated SDR variable, which is equal to.
We are calling the script.
Message is still I'm passing my guest here and my message is still variables as parameters, then recheck
else if.
My mother, ASDF, is equal to not in threat, but decrypts.
Then we see translated ETR is equal to decrypt messages in brackets saying, Yes, dear friend, again,
let's pass my message.
OK, so if it does not encrypt, you will check it for decrypt.
If it does that, you will call the appropriate methods.
Now, this method we will be creating later in the same program.
So after this, let us give operand command, say, using the key we put into 30 using percent s and
the value of my key STF.
Then the next one in command will give you receive the percent that is encrypted.
The message is and you put into my more.
So is it encrypted or is it decrypt?
And we print here the value of transmitters to use the paperclip to copy matter and copy the same text
translated as from the blank line and put in the message.
See, this message has been copied to the global.
That's just the way good informing to the user.
Now, that is the end of our main function.
Now we define the false function that we are using that is key is valid estimate, which is taking the
as the parameter.
And here we are having to steer that equal list is still to it.
And then we say let us.
List Asgeir, lots of letters STF.
And then we'll key.
List, SDR, dot thought and letters list Aysgarth Dot.
So then we finally say return the.
Killis dustier.
Is equal to your letters list STF.
OK, and after this written statement, we define the encrypt message here, OK?
And in this again, we're able to pass the parameter.
So now the parameters of 60 are and messages.
Then we just return the.
Translated.
Message, so, again, this we would be creating below in which we are passing the message, dear,
and the text us encrypt.
Similarly, redefine decrypt messages again, passing your key steer and message steer.
And also we are using a written statement for translated messages to where we are passing the value
of our message to steer and.
Decrypt the text now, let us see the definition of a transmit message system, which is a main function,
and get random keys also.
We created.