I have created an iOS app which includes an option for calling a function on my photon, and it sends a four digit pincode as its argument. Since i have understood the SDK to be using wrappers for sending POST requests, is the communication with the cloud done using SSL? If not, is there another way in which the data is encrypted or should I provide my own layer of security?
Sorry for the delayed response.
Indeed connection from phone to cloud is SSL secured, and all communication from Particle cloud to device are encrypted ZMQ packets. No work needed from your side to secure the data.