Question: Run c Code Validate Show Usage dat To thwart this potential attacker, let's now explore using a custom encoding. Instead of manipulating code points, we
Run c Code Validate Show Usage dat To thwart this potential attacker, let's now explore using a custom encoding. Instead of manipulating code points, we are going to use a custom m to switch out characters to encode our messages. Q14 - Custom Encoder (1 point) Write a function custom_encoder() to encode a character from original messages, using our custom encoding scheme (defined below). This function should take two input parameters: char the character to be encoded using our custom encoding scheme key the key to be used in encoding (int; default: 200) Within the function, carry out the following: Define the dictionary custom_encodings (provided at end of this coll . If char is a key in the custom_encodings dictionary, store the corresponding value from the dictionary in output_char fleir char were to the function would return 'n') . Otherwise, use the encoder() function you wrote earlier, storing the output in output_char, being sure to pass both char and key in as Inputs. Be sure to return the encoded character (output_char) from the function custom_encodings al o'p Him 'u's
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
