How to implement a first-time-only login scheme for a mobile web application implemented with jQuery Mobile, PhoneGap, and Django?

前端 未结 6 1929
粉色の甜心
粉色の甜心 2021-02-01 07:58

I\'m in early (pre-coding) stages of developing a mobile web application using jQuery Mobile (we looked at Sencha Touch for a few weeks, but jQuery Mobile is a better fit for ou

6条回答
  •  执笔经年
    2021-02-01 08:57

    The KeyChain solution would work only on iOS devices, so if that's your only target you are fine.

    But what about the others? Kind of a waste using PhoneGap but then deploying only to one framework...

    I know localStorage is not secure, but if you are aware of the limitations there are ways to make a bit less "obvious".

    Here's the jQuery.handleStorage plugin which also handles AES encryption... You could have a look at the source and implement only the parts you need (in case you don't want to use the whole plugin, which also supports desktop browsers!).

    PS: I am not affiliated in any way to that plugin or the author

提交回复
热议问题