|
Hello,
I'm new here, and I need to make a program that uses various encryption methods. I've done the case conversion, writing in reverse order, and eliminating the spaces encryptions.
I'm having problems doing the following: *Putting the characters in the string into blocks of 2, 3, 4, or any number chosen by the user *Using a set offset, for example: with an offset of 3, an A should become a D, a B should become an E, etc. (each character is substituted with the letter 3 alphabets away from it); the 'offset number' is selected by the user *using a random substitution so that each of the letters used in the string is assigned a random 'equivalent' alphabet that is not repeated, example: if message is: "this is a cat", the encryption MAY BE: "ptsj sj k mkp" (where the random would be: t=p,h=t,i=s,s=j,a=k,c=m)
Can somebody please just 'explain' how to approach the problem, and then i'll try to program it and see how it goes?
Thank you! Juwairia
|