Problem 48920. Cipher and Decipher the message - 3 key
You will be given a input number (eg) x='geikm' y==1
you have to figure out the dechiper key and match it with given input and decipher it
ref=ascii(32:126); decipher_key1=[ascii(33:126) ascii(32) ]; decipher_key2=[ascii(34:126) ascii(32:33) ];
decipher_key3=[ascii(35:126) ascii(32:34) ]
output ='hello'
if y==2
input='hello'
output='geikm'
"If" and "while" are forbidden
Solution Stats
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 19 Nov 2022
The problem description is not very clear, but the sequence of keys is 1,2,3,1,2,3, ... like problem #2 of this series.
Solution Comments
Show commentsGroup

Cryptography
- 10 Problems
- 7 Finishers
- decipher the number 1 - same key for all digits :)
- Decipher the number 2 - 3 keys
- Decipher the number 3 - 10 keys
- Decipher the number 4 - 3 keys - order [1 2 3 2 1 2 3 ......]
- Cipher or Decipher the number according to the second input - 1 key for all digits
- Cipher or Decipher the number according to the second input - 3 keys
- Cipher or Decipher the number according to the second input - 3 keys - order [1 2 3 2 1 2 3 ......]
- Cipher or decipher the number according to the second input - 10 keys
- Decipher the message - same key for all digits
- Cipher and Decipher the message - 3 key
Problem Recent Solvers9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!