Question: Hello, I ' m in a c + + coding class, so far we have learned functions, loops and basic variables. Could someone show me
Hello, Im in a c coding class, so far we have learned functions, loops and basic variables. Could someone show me how to code this in C Now that you know how to shift characters and how to get the shift value from a keyphrase, you want to implement method and so that
you can use these methods before your next class.
Write a function named getLayerMessageEncryption that encrypts a message based on the user selected encryption method.
The encryption method choices are as follow:
Shift right by
Shift right by mixed keys
See the overview section for description, equation and examples for the two encryption methods.
Function:
getLayerMessageEncryptionstring
int, string, string
Purpose:
Parameters:
Return Value:
Error HandlingBoundary Conditions:
string getLayerMessageEncryptionstring message, int methodchoice, string key
The function should encrypt the message based on the user selected encryption method. It st
anything.
string message The message to be encrypted.
int methodchoice The encryption method.
string key The first key.
string key The second key.
If successful, return the encrypted message.
If message is an empty string, then return the empty string.
If methodchoice is outside range then return message
If methodchoice is equal to and key or key is an empty string, then return messag
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
