Now, let us create a new file, and here we will see some more examples on seasonal Saiful So we're
going to basically define here amatol see in text, which will take the parameter as text start and
say is code variable.
Now in this particular matter we have a result SDR, which is equal to initially like freerunning for
loops even in the range we use your length for the text SDR and the use of that SDR is equal to text
SDR at the Elix Ivan and we check if the card is our DOT is in uppercase, then we see the result.
SDR plus is equal to convert to catcher.
You've already secured Esteve plus or minus sixty five,
then modulus twenty six plus sixty five.
Now if this is not true, we go for the L spot and we see the result.
SDR plus is equal to use against the already of CAD SDR plus a score minus ninety seven modulo twenty
six plus ninety seven.
Now after this we see here the values return.
The result SDR from the function and once that is done we end our function would be killed or text SDR
is equal to give your value at see Caesar Saiful.
Extra example in Python hacking.
That is our text that we have given and we give.
The value of this code is equal to say five.
OK, then we use print and here we say the actual text
is all use here.
The value as text is still to print the actual text that has been given.
Then we use another print matter we use here.
The shift button code is, and we print here the value of converting to SDR of F. Scott.
And then finally, we say the cipher text column and the value of we call your now encrypted text,
which is a matter in this we pass the text SDR comma escort and whatever the value would be written
will be printed over here.
So let us save this as now we have to again save it.
Inviting hacking beginner.
Let us say it as a demo for thought.
Be right, ok.
And if we have to run this, we go for a run module and we get this particular actual text that has
been given.
And using this code five, we have encrypted this enough ciphertext pattern that is shown here.
Right.
So with this another way in which we can use the cipher could not similar to this, we would use another
V for other, excepting the value of message.
We will also see how actually it is being shifted and how we are basically printing it.
OK, so we'll see another example on the same.
So let's go back here and in the same month we see a new file so we can close the demo for.
And in this, we will create first message text is equal to we accept the value from input C on new
lines and until your text after this, we use a shift called variable, which is converting to integer,
whatever the value of input that is, you're asking how many places to shift.
OK, now with this, we create another matter, say Lower Alpha, Asgeir, and here we are going to
store all the lowercase characters.
That is a, b, c, d e f g h i j k l m n o p q oreste.
Youve w x, y, z.
All in the lowercase and the same thing.
We will create another one, say Upper Alpha Astraea and we are just going to say here say Lower Alpha
Estie are not convert to uppercase so that all values would be converted to uppercase and stored in
a separate variable as opposed alpha astar.
Similarly, we are going to create using numbers code that's equal to zero.
One, two, three, four, five, six, seven, eight, nine.
So all the numerical values are basic numerical values are stored in numbers.
So now here we will take before SDR is equal to say, values, the lower alpha hestia plus the Upper
Alpha SDR plus the numbers.
OK, similarly, the after SDR is equal to say the lower alpha SDR in the bracket.
We will use here the shift or ohlin, which means you to that, plus the lower alpha SDR.
OK, and here we use the shift core.
Plus let's move on to a new line so that it is displayed proper for Alpha Asgeir shift core.
And plus, the Alpha Estie are calling shift code again here will add one more line C numbers code in
bracket shift code, plus numbers called in bracket
shift.
OK, now after this, we see another variable C translation is still that's equal.
Do we say still don't make sense.
And we use your before FDR comma after a variable and we use a cipher text SDR as our message text that
we have don't use or translate matal and parsing that the translation is still.
Now we are going to print here the values forced.
Seeing the coded message is OK and will print it over here.
We'll see dort format and bracket the Saiful text to be printed.