Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use matlab or octave to code. DO NOT USE if statements, while or for loops, reshape commands. Only use vectors, matrices, functions, or strings. 3.
use matlab or octave to code. DO NOT USE if statements, while or for loops, reshape commands. Only use vectors, matrices, functions, or strings.
3. (Basic ASCII Caesar Cipher) A very ancient cryptographic technique for hiding a message was to use a Caesar Cipher where each letter of a message is shifted down the alphabet (i.e. towards later letters) by a fixed amount. Normally, if a letter falls off the end of the alphabet it should wrap back onto the beginning. For this problem, we will consider a very basic implementation of such a cipher, were we do not worry about this wrapping. basic_caesar Function: Input variables: a string representing the message to be encoded a scalar representing the "key" (the amount to shift by) Output variables: a string representing the encoded message (note: you will have to force the result of your computations to be a character string by using the function char( applied to your resulting message) . A possible sample case is: >> ciphertext = basic caesar ('MATHRULES', 6) ciphertext = SGZNX (RKYStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started