Question: Please solve it using C language NOT c++. 4. Write a simple encryption/decryption program. Function encrypt 0 takes a character pointer as a parameter and

Please solve it using C language NOT c++.  Please solve it using C language NOT c++. 4. Write a

4. Write a simple encryption/decryption program. Function encrypt 0 takes a character pointer as a parameter and uses pointer offset notation to change the value in the address pointed to by adding 1 to it. Function decrypt ) takes a character pointer as a parameter and uses pointer arithmetic notation to change the value in the address pointed to by subtracting 1 from it. Function maino0 inputs a string from the user using getsO, calls functions encrypt () and decrypt o and prints the encrypted and decrypted strings upon returning from each function. Sample Output: Enter your string: this ia a secret! Encrypted atring is: uijt!jtlbitfda fu" Decrypted atring is: this is a secret

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!