create an encrypted communication tunnel: added source code