Will come for the next session in Biton, hacking into, of course, now in the earlier session, we
have learned that the Afine Saiful is actually the multiplicative.
Saiful, combined with the scissors and the multiplicative, Saiful is similar to a seasonal Saiful
except it uses multiplication instead of addition to encrypted messages.
So now in this session we will build and run a program to implement the Fine Saiful now because you'll
find Saiful uses two different Saiful as part of its encryption process.
It needs Loki's one for a multiplicative cipher and another for seasonal Saiful.
So for the Afine Saiful program we will split a single integer into two different views and the topics
which we will be covering in this session would be the tuple data type.
How many different keys can and a fine cipher and generating some random keys.
So we move on to the source code for the affianced program.
So here we would be creating a file, new file and we would be entering the code into this particular
file ed.
We would save it with a fine named or we might not make sure that we're able to save this file.
You should have the paperclip module, the module that we created in the last session in the same folder
as you, saving the same file.
So let us start creating this file.
Now, the first thing is let us go to our Windows Explorer.
So we go to the Explorer.
Now, when you drive, we are saving in Python intermediate level all the goals.
So here we have the Cryptome at one module and we have the paperclip.
So now let's go back to our goal here in the new file.
And first thing is, we will have to import now.
We will be importing the S y es then by the end of March one, that is C ottavi and then fandoms after
this import we are creating here, says Symbol's SDR.
That's equal to saving all the capital letters.
I think all of you are receiving WXYZ now, all in small a, b, c, d e f g h i j k elemental b q honesty
u v w, x, y, z.
And then the numbers did zero.
Then a space exclamation question mark foetid operator and close this of course.
Now after this we are going to define the main method.
And in this we would be creating say my message a and that's equal to now.
We are giving it in a duplicate.
See your.
Computer.
Would dissolve to be called as.
Intelligent if it.
Coach.
Behave like a human into.
Believing that it was human, some phrase we have written, OK, let us give some name, ABC.
Thank you.
OK.
And then we will close this with triplets, so now that's just one.
And here we would be creating the next that is see my ETR.
And that is equal to we are giving it nine four, for example.
We are creating your mind, Modesta.
And that is equal to we are giving the text as in group.
Now you can either set it to encrypt or decrypt.
Currently we are sending it to encrypt and then we are checking below that if the value of my Monastir
is equal to encrypt.
OK, then what are you supposed to do.
Let's go below and we will open the call and here we will create a translator to steer is equal to now.
We will be calling this encrypt message that we want to create.
So will be able to encrypt message as are forced then, Mike.
And my message is then you check that as if your mind, Modesta, if it is equal to decrypt, not encrypt,
then you will see.
Translated steer is equal to we would be creating the group message to steer.
And again, we would be passing the Mickey ETR and my message is steering this.
And after this, let's go back here and print the value of key all symbols.
And as we put into law enforcement, Mickey.
SDF and after this, the next print will give in single quotation marks, zipless and as Ed.
Text Glenn Close this and Hillary posted say my Modeste are not tight, then print the value of.
Translated, I stand here and use five.
Copy.
For copying the.
Translated up and put into Saiful.
Text.
Cold feet.
Clipboard and put into the value of my more Esther.
Now, once you have done all the transactions, letters and dysfunction here and go back here and define
SEGERT.
Keep out this year, and here we will pass the parameter keister and here we will get see a one that's
equal to sickies.
Land of symbols STF similarly give one is equal to hastier and then your widow modulars length of.
Symbols, SGA, and then we return here the value of key.
Even comma de Vivan now, after we have returned the value of QI, we need another definition that is
Cicek SDR.
And here we are passing the value of QI.
Even then he V1.
And Modesta, and then here we are checking that if C, P, E one is equal to one and say Modesta is
equal to say incorrect, then what are you supposed to do?
Say start exact blueprint CESI four is we give.
Kee.
Yvonne is one, so we give here, say Choo's or.
Different.
So directly, we are saying your sister, except for that.