how to "build" binary files with cordova?

Unqou

Veteran
Veteran
Joined
Mar 28, 2016
Messages
40
Reaction score
5
First Language
Italian
Primarily Uses
RMMV
I tested a simple game deployment (game scratch with anything) after setting cordova base install on Ubuntu

-> Cordova installed with npm
-> Android Studio installed in HOME (sdk installed by Studio in $HOME/Android/Sdk)
-> gradle downloaded from gradle site

what I "discovered" (not a surprise for the experts here) is that the packaged apk contains all the "www" assets exported by RpgMaker mv is left untouched (so open, unprotected).

I read in a post here (can't find it now) that you could use nw.js to "build" javascript files into .bin files and deploy .bin files instead of .js, but the nw.js is system-dependant.

But, as far as I understand, nw.js does not have a counterpart in Android so, if I understand correctly, you can't use nw.js to create bins that are correctly read in Android app. right?

Is there any way to make a minimal layer of protection? Or is it possible to find a solution, for example, embedding in a fake-c++ source in order to embed code in a binary form?

Are there any other system that allows you to have a minimal layer of protection of your deployed app and its contents?

I know that no system is 100% secure, and I am mostly an opensource fan myself. But however I am searching a way to think about how to avoid possible steal by any malicious user.

Thank.
 

Unqou

Veteran
Veteran
Joined
Mar 28, 2016
Messages
40
Reaction score
5
First Language
Italian
Primarily Uses
RMMV
Bumping my question (1)
 

RyanBram

Veteran
Veteran
Joined
May 13, 2012
Messages
238
Reaction score
277
First Language
Indonesian
Primarily Uses
RMMV
Hi, Unqou,

I know that no system is 100% secure, and I am mostly an opensource fan myself. But however I am searching a way to think about how to avoid possible steal by any malicious user.

  1. For multimedia assets (img, audio) you can use built in RPG Maker MV encryption
  2. For javascript, please try my bat script (download). Just extract the archive into your project folder which contain Game.rpgproject, and double click [Compile].bat . A folder compiledjs will be created. You can copy and paste the result into js/plugin folder.
  3. Test your project to find any error after encryption

Disclaimer:
- This solution is not 100% secure.
- Always backup your project before doing any encryption
 

Unqou

Veteran
Veteran
Joined
Mar 28, 2016
Messages
40
Reaction score
5
First Language
Italian
Primarily Uses
RMMV
Yeah... the idea is to have a project directory separated from the deploying of the project itself. I can't use your batch file (I am under linux) but I think I am understanding how it works. And I think your batch contains a tiny error: the mode is not "SIMPLE_OPTIMIZIATIONS" but "SIMPLE" (checked on the jar with --help). However thank you very much because you give me what I need (the jar file itself I didn't have). I will test it and see if works as expected. Very thank.
 

Latest Threads

Latest Posts

Latest Profile Posts


When you thought you'd be finished with the grid, and spend ~8-9 hours on an arrow. How is this more difficult to than player movement?

Still some bugs hiding in there, but it's nearly complete.

I'm having it strictly follow the path a user draws, because there will be booby trap and other similar mechanics where you want to avoid specific cells.
I feel like banging my head against a wall every time I want to find that post that shows all the plugin header codes. Then I think "next time I find it, I'm going to bookmark it". Then I think "wait a minute ... maybe I bookmarked it last time because it took me so long to find it". Check bookmarks, and there it is :)
... a few of my main characters standing around doing nothing lol. I mostly wanted to see them together on screen.

Forum statistics

Threads
107,824
Messages
1,032,448
Members
139,975
Latest member
Lucimountfort
Top