decryption on socket