Encrypting sensor reading using AES( or other supported schemes)

So that means link 1 data is always encrypted already by RSA+AES. Whenever I flash my photon with the new firmware, is this also sent encrypted, or is it only certain data exchange(sensor data for my setup)?

For link 2, do you mean I have the option of using either similar RSA-AES to setup connection between the photon and a laptop or I could use HTTPS client? If so, is there any pros and cons of using either of these, in terms of security, ease of setup and features I can explore later? I see both provide “authentication, privacy and integrity”, but I couldnt find resources to compare them.

Searching the forums I saw HTTPS client has been implemented here, and wonder if I would need a server side setup as well with this. I am abit lost on how to get started with setting this up.