This is my first program with encryptor/decryptor. Can someone help me with this program:
Write a program that simulates a string encryptor/decryptor.
The program ask to input: a secret sentence and an integer number(1-100)
Use defined function: void encrypter (char *, int) that accepts the string pointer and the encryption code. The encryption algorithm is based on the standard ASCII table and it encrypts the sentence character-by-character. The encrypted character is obtained from the original character plus the encryption code.
The function has to perform the encryption using pointers only; any operation n the string using array indexes is not allowed. Consider that the string is always terminated with the NULL character;can use this hint to loop over the string letters one-by-one using the NULL char as the exit condition.
The program must displays the encrypted string on the screen.