Cryption en/de cryption using C run the program csc main.cs Explaination In the above program, we have used simple logic for encrypting and decrypting a given string by simply adding and subtracting the particular key from ASCII value.