I'm using Worklight adapters to fetch data from a webservice. From client side I'm doing
WL.Client.invokeProcedure
Server side has respective code. Issue is this client to server adapter communication is via plain text and can easily be sniffed. Though my url is HTTPS but is of no use. Please help, I'm sure there should be a way in IBM worklight to make a secure application.
Thanks
AFAIK worklight is providing only two options for security between your mobile app and wroklight server. As you mentioned in your question Worklight is providing HTTPS for security. You can compress the data using
compressResponse
in yourWL.Client.invokeProcedure
You can always encrypt/decrypt, adapter requests/responses using javascript AES library.
You can use Stanford Javascript Crypto Library - SCJL for simple encrypt and decrypt. I guess SCJL is ships with Worklight.
SCJL is very simple to use. You find the below code to encrypt and decrypt.