Page 1 of 1

Encryption

Posted: Mon Aug 26, 2013 7:44 pm
by Ravi Wayne

Hello,

I am trying to use SJCL encryption (http://crypto.stanford.edu/sjcl/) in my project to encrypt local db contents. Can you suggest how I can access the javascript functions within an existing javasript routine? The existing javascript routine is used to persist data to a local db from REST.

For example:

sjcl.encrypt("password", "data")

Is there a way to use a include statement on the HTML page?

Thank you.


Encryption

Posted: Mon Aug 26, 2013 9:03 pm
by maxkatz

Did you already add the JavaScript function to your app? Here is how to do it: http://docs.appery.io/documentation/u...

Once you added the file, it's available on any page in your app. You can invoke it on any event.


Encryption

Posted: Mon Aug 26, 2013 10:53 pm
by Ravi Wayne

Thank you very much Max. I am trying it now.