c code for cipher and decipher