Reputation: 1
I am having a method in .m file and from javascript I want to send a string in return I will get a encrypted string.. how to do this
Upvotes: 0
Views: 385
Reputation: 4953
You need to create a custom plugin for phonegap to call any method from a .m file of your project There is plenty of documentation on this. you can have a look at some Tutorials as well.
Finally if its only encryption you need and your encryption uses any of the standard algorithims ,you can find the same Algorithm implementation for javascript eg jsaes and sjcl
Upvotes: 1