what u r talking now is completely different from wht u hv asked earlier
encryption and decryption in transmission and reception is completely different field
there are so many algorighthms. you can make ur own encryption-decryption method using your program code. or else you can implement any standard algorithm in C language.