basic cryptography program in C