Question: MATLAB Please help with encryption. Then main program should then call a function encrypt message which should take in the message to encrypt and the

MATLAB

Please help with encryption.

Then main program should then call a function encrypt message which should

take in the message to encrypt and the keyword

subtract 'a' from each element of the message (so the letter a is now 0)

subtract 'a' from each element of the keyword

encrypt the message using the keyword as described above (hint: first handle the letters encrypted using k0, then those encrypted using k1, etc)

add 'a' to each element of the encrypted message (so it uses proper ASCII) return the encrypted message

Enter a message in lower case with no spaces to encrypt: programmingisfun

Enter a length-5 keyword in lower case: maths

The encrypted message is: brhnjmmfpfsilmmz

The decrypted message is: programmingisfun

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!