Now, there is another definition that we are defining now, this was for encrypting.
Now we have four say decrypt message.
Here we take only the value of key.
OK, and in this particular definition, we take a variable C is equal to we call the encrypt message
here and we pass the value of SDR, comma, key one.
OK, so whatever value is being written by this function is stored in the value of BTR.
Then we have C decrypt or the E C string.
OK, like we have the in the string we have C.
They insist straight, OK, and this is also initially will do blank, we don't a for, say, I in the
valley of BTR here we check if.
Or of I more than equal to sixty five floors to Brakhage and or die of I is less than equal to 90,
then we are going to say here the variable DNC string is equal to say DNC string plus C in Brakhage
say already at the index ie minus Saeki minus sixty five percentage twenty six plus sixty five.
Then the next elusive part here we will be seeing security at the index.
I'm more than equal to ninety seven and already had the index I less than equal to seven twenty two.
Then we see the NC string is equal to say DNC string plus the value of Sicher.
Get the coat off I.
OK, after which we say minus Kate, minus ninety seven percent or modulars twenty six plus ninety seven
blows the bracket wall for the L spot here and use DNC string.
Now that's equal to the NC string plus feature of the already index ie minus the key value at ski one.
OK, so here we missed this Diski one.
OK, so after we have done this, if, if and the aspart OK, we go back here and see your return,
the value of the NC string, then we end this particular function, then we move on footprint.
We ask here and string to encrypt and decrypt.
OK, then we take your string.
One is equal to we call the input and take the value that then we print see the value as enter the key
and we give your C example eleven.
OK, you can give anything, just a value which you want to input.
Then we take your C keep is equal to convert to integer the value of input.
OK then we check if your keeping.
Is equal to keeping more or less.
Twenty six, OK, and we give your friend see
encrypted string and close the double quotes here we call the function that is encrypt the message.
So let us copy down this here and here.
We pass the value that this string one and keep.
OK, similarly next, we give your decrypted string colon and here we call the function that is decrypt
the message here.
Also, we just pass the value of Kippy because string is not required.
String is already taken by the encrypt function.
Right.
So with this, we save this.
OK, so let us save it in a drive.
Same folder said the military got by and we save it and we try to execute this.
So interesting, you want to encrypt decrypt.
So this is fighting hacking session one and some examples.
We enter your 12.
OK, fine.
Let's shake this.
OK, we have made a mistake.
This also has to be the same system we are taking the there and passing the same string and the encrypt
message.
So now we save it and we run the module.
So now we see this is saved by hacking session once, OK?
And if you want to enter so that it has encrypted a particular message and it has decrypt, we have
just not reversed it.
But now we have also encrypted it in a proper format and we have also decrypted the same in a proper
format.
OK, so that is how we have done this encrypting and decrypting option.