added ssl encryption/decryption