I need sample codes for encryption and decryption of network traffice