POR_DatabaseEncoder

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,123
Reaction score
10,616
First Language
Czech
Primarily Uses
RMMV
Just as the name suggests, the plugin encodes your database files. Or in particular all JSON files it finds inside the data folder of your project. That means any JSON files that are outside of this folder (and hence any plugins that use them) are incompatible with this.
The purpose of it is simple, to make your database files human unreadable.

How to use:
1. turn on the plugin
2. launch the game in playtest mode
3. deploy the game
4. delete the base database files inside your deployed version (inside the /data folder), leave all the EncData files inside
5. That's all!

Terms of use:
MIT license

Find it here:
https://github.com/Poryg1/RPG-maker-MV-small-plugins
 

TenTranVN

Veteran
Veteran
Joined
Apr 13, 2017
Messages
171
Reaction score
18
First Language
Vietnam
Primarily Uses
RMMV
does is working on mobile ?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,123
Reaction score
10,616
First Language
Czech
Primarily Uses
RMMV
The encoding should be done on PC, but the thing should work even on mobile.
 

TenTranVN

Veteran
Veteran
Joined
Apr 13, 2017
Messages
171
Reaction score
18
First Language
Vietnam
Primarily Uses
RMMV
The encoding should be done on PC, but the thing should work even on mobile.
Put simply, this plugin only encrypts data from the data directory. Is there any way to encrypt the plugin directory as well?
 

MrNybbles

Veteran
Veteran
Joined
Nov 6, 2019
Messages
59
Reaction score
31
First Language
English
Primarily Uses
RMMV
Is there any way to encrypt the plugin directory as well?
Yes, but obviously it couldn't be a plug-in in the encrypted directory (not without something else decrypting it first anyway).

It would need to be code either in one of the js/rpg_*.js files, or some other JavaScript file referenced from index.html in the project's root directory. The advantage to putting it in an existing file is there is no additional file tipping anyone off as to what is really going on.

Both the /rpg_*.js files and Poryg's plug-in are under the MIT license so mixing the code shouldn't be an issue.

However, because many plug-ins are publicly available it will not prevent people from knowing what is inside the plug-in just from the name (and the name is how the plug-in manager knows which parameters to give which plug-ins).

There are not perfect solutions, but plain-text invites curiosity, fiddling, and theft.
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
681
Reaction score
377
First Language
Poland
Primarily Uses
RMMV
Idea is great, but for some reason, my project didn't make encrypted files.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,123
Reaction score
10,616
First Language
Czech
Primarily Uses
RMMV
@Soulrender The only idea that pops into my head is, your version of MV is outdated. Other than that I will not know unless you show me the error messages that pop in the dev console.

As for the plugin folder, it can be encoded, but I saw no reason for it. For offline release there's a better method to protect it, MV cook tool. For online release there is no point in it, because the plugins can be ripped straight off the game in their unencoded version anyway.
 
Last edited:

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
681
Reaction score
377
First Language
Poland
Primarily Uses
RMMV
@Poryg I use MV 1.5.1 and only for windows deployment, but as I said the enc* files don't create. Console log is clear and there are no errors at all.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
845
First Language
English
Primarily Uses
RMMV
@Soulrender Hmm, and the project is being run in test mode?
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
704
Reaction score
429
First Language
English
Primarily Uses
RMMV
Put simply, this plugin only encrypts data from the data directory. Is there any way to encrypt the plugin directory as well?
Use this cook tool to encrypt your plugins. When I noticed it, I tried to give it as much publicity as I could, but a few months later and everyone's forgotten about it again. It's not going to stop someone who really wants to steal plugins from getting to them, but it adds a couple of steps to the process, to prevent someone from simply opening a folder and copying out a text file.
 

TenTranVN

Veteran
Veteran
Joined
Apr 13, 2017
Messages
171
Reaction score
18
First Language
Vietnam
Primarily Uses
RMMV
Use this cook tool to encrypt your plugins. When I noticed it, I tried to give it as much publicity as I could, but a few months later and everyone's forgotten about it again. It's not going to stop someone who really wants to steal plugins from getting to them, but it adds a couple of steps to the process, to prevent someone from simply opening a folder and copying out a text file.
thank u
does it working on mobile ?
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
681
Reaction score
377
First Language
Poland
Primarily Uses
RMMV
Oh! And all is clear now. Thanks :)
 

RPG_itch_Studio

Veteran
Veteran
Joined
Jan 20, 2018
Messages
83
Reaction score
16
First Language
English
Primarily Uses
RMMV
Is it possible to add an "Encryption Key" option to this plugin?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,123
Reaction score
10,616
First Language
Czech
Primarily Uses
RMMV
@RPG_itch_Studio The plugin uses a LZString compression, not encryption, so there is no way to use an encryption key. I am not going to make the plugin encrypt stuff though, because since MV is Javascript, there isn't too much difference in security between LZString compression and encryption.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I will be streaming RPG Maker demos very soon
Not. Enough. TIME.
Ami
--- Cheating ---

Hero: I can't Stand this! (Activate Infinite HP, Stats 999)
Game Police: Hold right there!
Hero: What happened,sir?
Game Police: You're under arrest because Using Cheat in the Game,illegally!
(Handcuffing the Hero)
Hero: Huh???
Game Police: You have the Punishment to Not be in this world: 6 Months
Hero
: (Shocking) WHAT???
Need advice that should be adjusted
Some local cursed and attacked me because I said children should learn copyright....

Forum statistics

Threads
103,131
Messages
997,503
Members
134,609
Latest member
BuilderInc
Top