Simple encryption in C