Write a C program which performs the following tasks:
1. Encryption of a message with a rotation cipher given themessage text and rotation amount
2. Decryption of a message encrypted with a rotation ciphergiven cipher text and rotation amount
3. Encryption of a message with a substitution cipher givenmessage text and alphabet substitution
4. Decryption of a message encrypted with a substitution ciphergiven cipher text and substitutions
Inputs
– Read from stdin with scanf()
-All input data is to be encoded with the ASCII standard. ASCIIencoding defines that upper and lower case letters be stored as thefollowing 8-bit integers:
If an input byte is outside of the ranges
OR
OR