Now, once we have done this, let us check for another option, another, if not so, we will check
again another condition that if your key be one, if that is equal to zero and your Monastir is equal
to encrypt, OK, then again, you're saying systems exit and you're giving a message, say, for this
week if.
That's ciggie vivants is Zettl say Juzo different?
OK, this is another that we have checked another we will be checking here that if your key A1 is less
than zero or your key V1 is less than zero or.
Shaky V1 is more than the length of our symbols STF.
And that comes to land minus one, then, if this is true again, we are seeing this exit Saiki even
must be.
Greater than zero and your key be won must be, say, between zero and print percent s and put into
your percent in bracket Saillant of.
Symbolistic, minus one.
Now, once we have checked with this, the next we will check in the if condition, that is, see if
your.
Crypto math one got use the CD function there, Paskey, A1 there, and the length of symbols STF and
if that is not equal to one.
Then again, you see start exit and put into your psyche even.
In Blackett Placenta's and the symbol set size and bracket, again, percentages are not.
Relatively prime, say Tuzer.
Different key.
And print wasn't even here then the length of symbolistic.
Now, after we have checked for all the conditions in the Czech ETR method that we have to find, we
move on to creating the encrypted
message SDR method, which will take the USDA and the message still.
And inside this, we would be creating.
He even gonna give me one that equals do we get the key part instead, but the key is the.
So we are getting those values, which are things that are core values, which are that we are creating
variables to hold the values, then we call the chick, he starts to talk and he'll be able he.
The one and the next, and then we create here see ciphertext steer that's equal to blank.
Initially we ran all four four symbols in.
I steer, we check if the.
Symbol in symbol still, then here we create Symbol X that's equal to symbols, dear God used to find
a method and pass symbol into it and then we see ciphertext STF plus is equal to symbolistic properly.
Square bracket heliopause the.
Symbol ideas multiply that with key events plus key Beevor and divide that with the length of.
Symbolistic then close the square bracket.
Now, this is the effort that we have written, will move on to the sales part here and here.
We will write the cipher text.
SGA plus is equal to the symbol.
So we are basically opening the symbol without encrypting it.
And at the end, in the last we would see written.
So for next year, that is the end of the definition of an active message.
Similarly, we are having.
The crypt.
Message is this also takes.
Staff and messages.
And in this, we are again creating he even then one that Squirtle we are calling the get.
Key part is still passing.
The key is still there.
We are calling again, the check is still matter and passing in that A1.
The one with the text decrypted, because now we want to decrypt it, so for storing the text, we take
plaintext as the average is equal to blank, then we create more.
In words of.
A, that's equal to now.
We are calling the.
Krypto, Matawan, dot, we call now in that file.
Let us just check, we'll go through our file and let us open this in Python itself.
Righto, let's temporarily open this using the same notepad.
Now, in this, we are having this find more enrols.
Same method we are having.
So let us go back here and the same method name, we would don't find more involved and we passed there
even and the length of a single STF.
So that value will be stored in the more inverse of even let's give your evil.
That is easy for us to remember.