Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ntlaxboy

macrumors newbie
Original poster
Jun 1, 2009
3
0
Hello,

I've been surfing for a while trying to find the answer to this question, and haven't had much luck, so I figured I'd give posting on this forum a go. I don't have too much programming experience, especially not with Obj-C. However, I'm about to begin writing an app for the ipod touch that records answers to some survey questions, and stores the completed survey. The roadblock really becomes how to get these filled-in surveys off of the ipod. The survey data needs to be securely transferred from the ipod to a pc/mac, preferably over a non-wireless connection (although a secure network would probably be okay) since the data is confidential and will be deleted from the ipod after transfer. I haven't decided on the best format for the data, but for the sake of discussion, assume its something like XML.

Thanks a lot!
 
in the end, you have to do it over wifi and that leaves you with two options:

1) email or some kind of instant messenger or something similair
2) using your own server and giving the user an url where he can pick up the data. of course, if you need this to be secure, this requires user accounts and stuff like that.

theoretically, it could be possible to transfer the data directly to an pc mac, if you have the internal ip of the pc/mac and the username/password to connect to it. I never tried something like that, but I guess it should be possible the same way you would open a connection to the internet. problem is, you need some kind of protocol to connect to the computer. I think macs can be accessed via ssh, but pcs ...
 
Specifically, for email attachments you'll want public-key encryption. The SDK supports RSA I believe.

Alternatively, host it server-side and SSL between it and your users.
 
Thanks to all of your suggestions. I'm leaning away from email because it leaves too many copies of the data in circulation, and the data is supposed to be confidential survey information. Theoretically, there will be several ipods feeding the data to one computer that would print out a copy of the completed survey and probably store the only digital copy of the data a secure server.

@Blackwolf: How difficult is it to set up a secure server, per your #2 below, and more relevantly to this forum, how hard is this to code on the iphone/ipod touch?
 
well, it depends how secure you want it to be.
setting up a simple login system shouldn't be too hard.
it has some downsides for the user though. he has to register and then visit your webpage and login in order to get his data.

if you want it to be really secure, you need an encrypted SSL connection. and that is pretty difficult to set up, at least I think that :D

and, of course, a server has the downside that the data of all your users are stored in one single location. if your server gets hacked then the hackers have access to all the data at once ... if that matters.
 
I'm leaning away from email because it leaves too many copies of the data in circulation, and the data is supposed to be confidential survey information.

If it's public-key encrypted then the attachment would not be human-readable or decryptable except by you, so copies would not be a problem.

How difficult is it to set up a secure server, [...] how hard is this to code on the iphone/ipod touch?

Apache supports SSL natively, and generating your own certs is pretty straightforward. The iPhone SDK offers the CommonCrypto library for client-side SSL, or alternatively you could use a web-based login, which would let WebKit do most of the client-side work for you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.