Tell me more ×
IT Security Stack Exchange is a question and answer site for IT security professionals. It's 100% free, no registration required.

I know PHP/MYSQL but i don't know much about iPhone development and as such I found someone to help me. He is telling me that he can make my app, which will be a basic note taking service that will let you post via the app to the website and then retrieve that note on the iphone when requested by the user. He said that he will use XML and that the data will be secure because its "hard coded."

I am not sure what he means but is it true that the app will be secure if done in XML?

Thanks

share|improve this question

closed as not a real question by Rook, Rory Alsop May 13 '12 at 10:20

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

2 Answers

Using XML-formatted data will not make the content any more secure than using plain text. You need to think about using encryption or a secure channel when transferring data between the application and the "web site".

share|improve this answer
Thanks. What about SSL? My website has SSL. Not sure what you meant by "web site" in quotes ;P – ariel May 3 '12 at 3:31
1  
SSL would be what Bernard refers to as a secure channel. – Graham Hill May 3 '12 at 9:57
@ariel: Yes, I mean SSL. And you referred to a "web site" in your question, so I am quoting that. – Bernard May 3 '12 at 13:33

I'd suggest you should nail down precisely what your developer is talking about. Neither XML nor hard coding are things I'd ever expect to hear in the context of "It's secure because I'm using X".

XML is a markup language. You're probably familiar with it's cousin, HTML? XML is used to transport and store data in a text file. Play about with mysql --xml and you should be able to dump a table as an XML file: that'll give you the idea better than any explanation I could give.

If you have an app that talks to a web service, and it sounds like you do, then XML is a popular choice for transmitting the data, but there's nothing secure about it. To do secure XML data transfer over the Internet, you have to layer some security on top of it:

  • you might encrypt the data before putting it in the XML
  • or (probably better) encrypt the XML file before transfering it
  • or tunnel a secure channel over the Internet (e.g. SL or a VPN) to transmit the XML file.

Since you've already got SSL in place for your web surfing, adding it to your web service should be straightforward and this is probably the way to go. Hard to tell without more detail.

Next, "hard coded". This means data or configuration settings that is included in the source code of an application. It's usually a bad idea.

Key to understanding this is to know what he proposes to hard code. He can't mean the note data you are transferring - he doesn't have that at compile time because the user types it in. Is he maybe hard coding authentication data into the app? That feels wrong as well, surely you're doing per-user authentication. Maybe he's encrypting, and hard coding the key? All sorts of things wrong with that.

This would generally make me nervous. There are some situations where hard-coding is appropriate but generally it's a sign you're doing something terribly wrong.

share|improve this answer
Thanks Graham for your detailed explanation. Yes, i know about web coding but never touched XML. This guy tell me that he will be using an API which will be hidden so nobody can see it and said that companies like Facebook, Dropbox do the samething. I know these companies would do the best to secure the app itself, so i am not sure at this point if this developer is lying to me that it will be secure or what but do you think simply using SSL will do it? – ariel May 3 '12 at 16:54
Again, a lot more detail needed about what he is planning (and I haven't even gotten to the fundamental question of what you mean by secure!) but this is making me even more nervous. It sounds like he's using security through obscurity which, like hard coding, is not inherently bad but raises warning flags. – Graham Hill May 4 '12 at 9:06
OK, let me ask him and i will relay it to here. Thanks for helping out! – ariel May 4 '12 at 16:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.