Windows Phone 7: Translator Sample, an example in what not to do!

by Nick 10. February 2011 20:27

I’ve posted about this before but now I feel the urge to say it again following the Real Apps, Real Codepost by Mark Hopkins (by the way I actually think this post and the use of samples is fantastic, I just like this example).

If you look at the Translator Starter Kit section there is a link to the Translator Starter Kit topic. Here the guidance suggests that you should get an AppID and add it into your application.

image

Surely they can’t be serious – DO NOT PUT APPLICATION KEYS INTO THE APPLICATION ITSELF. Application Keys/Ids are a web construct and work well when they’re in a configuration file on a server. If someone gets access to them then you’ve got bigger concerns than whether they’re going to be using your app key for some malicious purpose.

With an app key/id placed within your Windows Phone 7 application it’s about a 2 minute job for anyone with Fiddler and Reflector (after coughing up $35 to Redgate – talk about bad form!!!) to extract your Application key/id.

Unfortunately there is no holy grail for how you should deal with app key/ids. Some solutions rely on them being placed on a server and then retrieved when the application is run; some solutions distribute parts of the app key/id throughout the application, making it hard for someone to extract it. Essentially it comes down to security by obscurity which is not a great position to be in. When will the industry learn that app keys/ids are not the answer.

Tags:

Comments (1) -

2/11/2011 4:05:28 AM #

Stuart Lodge

As long as you've only got a basic developer account, then I think actually you can include your AppId within your app without worrying too much.

While stealing the key from an app is fairly easy, if someone wants a key then stealing from clientside javascript is even easier!

Basically, I think the whole Bing AppId routine needs a rethink...

(There are a few posts like this around that talk about the lack of value that AppId's deliver http://www.bing.com/community/developer/f/12254/p/648647/9540753.aspx)

Stuart Lodge United Kingdom |

Pingbacks and trackbacks (1)+

Powered by BlogEngine.NET 2.0.0.36

Automotive Theme by Car Leasing Experts

 

Page List