Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsMobile ProgrammingMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 17th, 2011, 02:52 AM
Sratytaty Sratytaty is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 2 Sratytaty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 18 m 7 sec
Reputation Power: 0
Mobile web page - where to keep private data on devices?

Hi,

I'm developing mobile website and I have one problem with security some of data.

First time the user browse my site, the page requests a server to get some private user's data (i.e. RSA private key) which is used in future operations. This private key must be stored somewhere in local device memory (as a file on device, browser cache...). Next time when the same user launches the page (some functionality on page), the page has to load the file from local data when needed and use it (i.e. encrypt some string with private key).

The problem is where to store this key and how to read it?

First, I thought about cookies. But the cookie will be sent with all requests, so doing it with private key IMHO is not a good idea. The connection of course will be via SSL, but even that I don't want to send private key to server (it has to be as secure as possible!). So, how to solve to problem...?

I can add, it's not necessary to get the private key from server. It can be load as a file to device via its file manager or something like that. Simply - the browser has to read the private key when it will be needed and use it. I don't think that browser allows to save/read file from JavaScript, am I right?

Solution of the problem must work on most of available devices and browsers nowadays (especially iPhone, Android, Symbian + Opera Mobile(/Mini?).

Maybe HTML5 and its 'localStorage' could solve it but I have to assume, I CAN'T use HMTL5 with all its features. I consider using jQueryMobile framework.

Please, help! Thanks in advance!!

Reply With Quote
  #2  
Old February 17th, 2011, 04:01 AM
MrFujin's Avatar
MrFujin MrFujin is offline
Lord of the Dance
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Oct 2003
Posts: 3,129 MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 22 h 57 m 20 sec
Reputation Power: 1736
As standard, you don't transfer the private key, but the public key.

Why is it SSL is not enough? what kind of security do you want to archive with you own version of private/public key transfer?

It sounds more like you need some kind of a login/member application.

Reply With Quote
  #3  
Old February 17th, 2011, 04:26 AM
Sratytaty Sratytaty is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 2 Sratytaty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 18 m 7 sec
Reputation Power: 0
Quote:
Originally Posted by MrFujin
As standard, you don't transfer the private key, but the public key.

Yes, I know. The private key doesn't have to be transfer. But the key has to be load somehow to device. The problem is how to get the key from device to use it browser (from encrypt some data).

Quote:
Originally Posted by MrFujin
Why is it SSL is not enough? what kind of security do you want to archive with you own version of private/public key transfer?

I don't want to send the private key with every request in cookie. SSL should be OK, but i'd like to provide the website the highest level of security.

Maybe it's possible to don't send particular cookie, but till now I didn't find an answer.


Quote:
Originally Posted by MrFujin
It sounds more like you need some kind of a login/member application.

This is a main requirement of the job - it must be a webpage.

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingMobile Programming > Mobile web page - where to keep private data on devices?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap