given a text i have to encrypt it and decrypt it with Caesar method. A user will give a key and this key could have more than 4 digit. to cipher the text each digit must have it table.
example:
text=don't touch my spaghetti
key=1234 //this key has to be divided like [1,2,3,4]
to cipher the text, every character has to be shift with one of these numbers
example:
the character "d" will be shift with 1, "o" will be shift with 2, "n" will be shift with 3 , "t" will be shift with 4 and this will repeat till the text has been encrypted of decrypted.