ibm-mobilefirstworklight-adaptersmobilefirst-adapterssjcl

SJCL in IBM MobileFirst adapters / client side


Since data invocation to/from IBM MobileFirst and Mobile App client is in plain text, I'd like to encrypt some data (let's say a password) on the mobile app and decrypt it in IBM MobileFirst adapter after it's being passed to the adapter. What would be the best way to achieve that? I've seen some suggestion to use SJCL. Where would I store the key? I assume the key must be the same in the app and server-side.


Solution

  • YES. your are right. The SJCL uses various security technologies to secure passwords and protect them against a multitude of attacks.

    MobileFirst offer you WL.SecurityUtils for achieve that. and store the key as your requirement,but you're not even trying. Still, a depressingly popular option.

    for blog https://developer.ibm.com/mobilefirstplatform/2015/07/31/saving-encrypting-and-showing-images-using-cloudant/

    for API reference http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.apiref.doc/html/refjavascript-client/html/WL.SecurityUtils.html?cp=SSHS8R_7.0.0%2F9-0-0-1-23