in reply to Simple Encryption question

Is this homework? If so, I'm not going to help you. If not, why are you using such naive encryption in a real program?