Data encryption in PhoneGap applications?

My company is developing mobile applications that require encryption in their functionality for several platforms - iPhone, BlackBerry, J2ME, WinMobile and, possibly, Android in the near future. I tried to find ways to develop our applications, so that all the application logic can be developed in a single code base with a different interface shell for each platform, and PhoneGap seems to be a promising solution.

What I want to ask is whether an application developed in PhoneGap can use encryption such as 3DES, AES, MD5, SHA256, etc.? Since, as far as I understand, the PhoneGap application will be written using web development technologies such as Javascript / CSS, and I'm not too sure about the encryption functions that they provide. (I'm more of an application developer than a web developer)

I was thinking of making my own helper classes for this, but I'm not sure that these classes will be portable on all platforms. For example, if I make these classes using Java, will they be used on the iPhone? And How?

Or, if anyone knows of a better way to do this, please share it. Thank!

-Quinn

+3
source share
3 answers

The main APIs of smartphones are very different from each other (iPhone: objC, Android: modern Java, Blackberry: old J2ME Java).

When you exit Phonegap to go home, you will almost certainly need code specific to each platform.

+2
source

You can do all this in JavaScript - because JS is compiled into a telephone newsletter, you don’t need to worry about its integrity, plus you can enter the code in your public key so that your private key is selected later.

. http://www.ohdave.com/rsa/, RSA ( , , ). symettric, AES - C, ?.

+1

, javascript- .

, ( GPL )

SlowAES AES jsSHA2 SHA-512

.

0

Source: https://habr.com/ru/post/1766123/


All Articles