encryption routine written in bytes through c