codefoster | All posts tagged 'source'
Jeremy Foster
@codefoster

Unintentionally Open Source?

by Jeremy Foster 11. December 2012 12:42

I saw this tweet and decided to respond.

The technical answer is YES. You can access the source code for Windows Store apps written in HTML/JavaScript. But there are a few reasons that you should forego panic.

First, this is no surprise. App packaging and distribution has a ton of design and testing behind it. The designers knew exactly what was going to the client and exactly how much effort it takes to discover it. Developers are responsible for their own obfuscation strategy. If Microsoft created their own, it would just get pwned in a couple weeks and then it would be a senseless inclusion in the product. It's better for obfuscation to be out of band with the Windows product and for it to be contributed by third parties.

Next, the way it works with HTML/JavaScript apps is actually similar to many other language stacks. JavaScript is clear text and translated script so it's very easy to look for a .js file and read it. Managed languages such as .NET languages are only logistically more difficult to reverse engineer and capture the source from.

Next, the source code is available on the client, but the package is tamper proof. If a hacker finds it and changes one of the .js files so that the script now does something it wasn't intended to do (such as validate that an in-app purchase has been paid for or that the app is not in trial mode), then Windows will not allow that package to execute.

Finally, the bottom line is that you should never trust code on a client. It doesn't matter the language, the platform, or even the obfuscation technique. It can and eventually will be hacked. You should consider how sensitive your intellectual property is and protect accordingly. If you have very valuable business logic that would hurt you or your company if it's taken then I wouldn't even put that logic into the client app. I would put it in the cloud and make it available through service calls. That's a better architecture for a lot of other reasons as well. If you are a hobby app developer and you wrote a silly app, I wouldn't worry about it. It's a very small portion of the population that's going to try to take your code. The chances that your stolen code is going to turn into much added value for them is low and the chances that their efforts with it are going to hurt your business is even lower.

Tags: , , , , , , , , , , ,

JavaScript | Windows 8

Source Media

by Jeremy Foster 20. November 2012 14:25

I decided to put together a reference post for when you're looking for stock photos, clipart, audio, music, or video. I will update this post as I am made aware of new sources.

Photos

Office Images http://office.microsoft.com/en-us/images
morgueFile http://www.morguefile.com
iStockphoto http://www.istockphoto.com
Corbis http://www.corbis.com

Illustrations

Office Images http://office.microsoft.com/en-us/images
OpenClipart http://openclipart.org
The Noun Project http://thenounproject.com
IconFinder http://www.iconfinder.com
Icons 8 http://www.icons8.com/
The XAML Project http://www.thexamlproject.com/
SyncFusion Metro Studio http://www.syncfusion.com/downloads/metrostudio
266 Icons http://raphaeljs.com/icons/
We Love Icon Fonts http://weloveiconfonts.com
Windows 8 App Icons http://codefoster.com/win8icons
Open Game Art http://opengameart.org
2D Game Art for Programmers http://2dgameartforprogrammers.blogspot.com

Audio

freesound.org http://www.freesound.org/browse
Incompetech http://incompetech.com/music/royalty-free
freeSFX http://www.freesfx.co.uk

Video

none yet... leave a comment if you have any ideas

Other

dfWiki http://dfwiki.devfish.net/Default.aspx?Page=Icons&NS=technology
Windows Marketplace Icon Makerhttp://github.com/DavidBurela/WindowsMarketplaceIconMaker

Tags: , , , , , , , , , , , , , , , , ,

Design | Windows 8

Feed Subscribe