NimbleKit - fast iOS app development

protecting the code

Anything about NimbleKit SDK

protecting the code

Postby wesleyh » Fri Apr 08, 2011 7:14 pm

Is it in any way possible to protect the code from being reverse engineered? I assume it's all in plain text somewhere in the app? As opposed to something like appcelerator?

Thanks.
wesleyh
 
Posts: 4
Joined: Fri Apr 08, 2011 7:07 pm

Re: protecting the code

Postby Big-O » Fri Apr 08, 2011 7:19 pm

You assume correctly. It is possible to get to the html and javascript files packaged with your app if you know what you are doing. That is already a requested feature for NK. I don't know when it's planned to be implemented.
-- Big-O
-- Nimblekit Guru, Web Developer, Hopeless Geek

I do freelance!
http://realisticweb.com
User avatar
Big-O
NimbleKit Guru
 
Posts: 1231
Joined: Thu Sep 24, 2009 4:02 am

Re: protecting the code

Postby sunny » Fri Apr 08, 2011 9:45 pm

it's planned for version 2.0, maybe it will be done earlier, but anyway even if in 2.0 it's quite close
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: protecting the code

Postby wesleyh » Sat Apr 09, 2011 5:52 pm

Great! Btw, I just bought a book about nimblekit on amazon (you recommend it on your homepage) - will this be obsolete with v2? (big changes?)
wesleyh
 
Posts: 4
Joined: Fri Apr 08, 2011 7:07 pm

Re: protecting the code

Postby sunny » Sun Apr 10, 2011 1:54 pm

no, v2 just will add more features, some functionality will be changed, but existing code will work as it is now
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: protecting the code

Postby floz » Mon Apr 11, 2011 11:37 am

@ wesleyh: That book is great. Doesn't go too much in-depth NimbleKit-wise, but still saves you a lot of time, especially when it comes to testing and ultimately distributing the app...
User avatar
floz
NimbleKit Guru
 
Posts: 261
Joined: Sat Feb 05, 2011 2:07 pm
Location: Newcastle, Australia

Re: protecting the code

Postby michaelangela » Tue Apr 12, 2011 2:44 am

Obfuscating JS is quite a challenge! I'm curious what the solution would be but I can only imagine that it would just slow folks down since in the end JS has to be interpreted.

And about the book, I just saw it on Safari Books Online. I'll have to give that a read!
michaelangela
 
Posts: 16
Joined: Tue Apr 05, 2011 5:21 pm

Re: protecting the code

Postby sunny » Tue Apr 12, 2011 11:21 am

I can only imagine that it would just slow folks down since in the end JS has to be interpreted

I don't agree, that is only the case if someone wants to use exactly your code, otherwise it's almost not possible to modify anything. For example we can say the same thing about disassembling, you can get the source code of any application but what would you do with it?
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: protecting the code

Postby floz » Tue Apr 12, 2011 2:18 pm

Agree. While it would be nice to have something automatic provided by nimblekit, for now I just throw everything in a main javascript file and obsfuscate that. Removing all in-code comments and changing most variable names would make any re-use of code VERY tedious...
Last edited by floz on Tue Apr 19, 2011 12:37 pm, edited 1 time in total.
User avatar
floz
NimbleKit Guru
 
Posts: 261
Joined: Sat Feb 05, 2011 2:07 pm
Location: Newcastle, Australia

Re: protecting the code

Postby mayakovski » Wed Apr 13, 2011 8:07 pm

+1 for the book, "The Web Designers Guide to iOS Apps", I got it on my Kindle a month or two ago and it was very, very worth it.
No matter where you go,
there you are. B.Banzai
User avatar
mayakovski
 
Posts: 158
Joined: Mon Jan 17, 2011 7:37 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest