Encrypt/Decrypt

This is a discussion on Encrypt/Decrypt within the C Programming forums, part of the General Programming Boards category; OK, I've decided that my 2 1/2 year old will be easier to figure out than the beginings of C ...

Encrypt/Decrypt

OK, I've decided that my 2 1/2 year old will be easier to figure out than the beginings of C programming. Well, I've tried all three and attempted modification (out of guessing) and still don't reach my needed result. Once again, out of any order of numbers such as 1234(I've just pick this size in digits, could be larger if I wanted), I need to encrypt that number by adding 7 to each charater: (1 becomes 8, 2 becomes 9, 3 becomes 0 and 4 becomes 1) The last digit of the roleover is not used. Can anyone see where I'm messing up?