Created encrypted socket

Created encrypted socket