Appcelerator mobile applications use Secure Sockets Layer (SSL) for encrypting and decrypting all data transmitted and received by the device. However, for certain applications, one may want to add another layer of encryption for added security. This post describes how to programmatically add additional encryption for data in transit between an Appcelerator application and an ArrowDB as illustrated below.
The basic idea is to add a pre block to your Arrow model for decrypting data on a POST or PUT from the client app. This will decrypt data sent by the client app. Also, add a post block for encrypting data being sent to the client app on a GET.