Question: Create a function called caeser _ encrypt that fakes two parameters, s string ( character array ) to encrypt, and an int giving the offset
Create a function called caeserencrypt that fakes two parameters, s string character array to encrypt, and an int giving the offset that should be used to encrypt. The function should didplay the encrypted string.
For example:
Caeserencryptabc
Should display "def".
CaeserencryptThe quick red fox jumps ober the lazy brown dog",
Should display"~J@JOJ:CJ@;J:AOJKJEDJ:BJ
You may assume that the strungs have been appropriately terminated, and that the strlen function can obtain their length.
Please note: you should not write a main function. Assume that all necessary #include statements and then main function have all been implemented. You should write only the requested function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
