Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Code security

edited July 2013 in Suggestions Posts: 2,820

When publishing a Codea app to the App Store, there is no encryption on the lua files. At all. They're just sitting there... just waiting to be taken or fooled with. For example, I can say that TouchLine has 5072 lines of code (impressive, even though 50% of them are commented out). Is there any way I can encrypt my code so nobody can just waltz in and copy my code?


  • SimeonSimeon Admin Mod
    Posts: 5,361

    @juaxix used to encrypt his Lua code and then decrypt it before loading it into the runtime. That was possible with the old (GitHub) runtime. The new one only accepts a path to load files — we'll have to look at adding string loading.

  • Posts: 2,820

    @Simeon - Thanks.

  • Posts: 371

    Can you not format your code with string.dump()?

  • but if code are decrypt before loading it into the runtime, we could decrypt it at any time, no ?

  • SimeonSimeon Admin Mod
    Posts: 5,361

    @HyroVitalyProtago it would prevent people from inspecting the app package from seeing the plain source code.

  • edited July 2013 Posts: 455

    Security via obscurity is generally frowned on, but you could do a code mangling util which removed comments, changed variable names to be incomprehensible and eliminated excess white space. It would make it less usable to a dodgy person.

Sign In or Register to comment.