How to better protect and encrypt our games?

Hey everyone! I just saw this video by JustSaySteven about a game released on itch, that was decompiled/stolen and resold on the app store.

And that got me curious and made me want to open this thread, where we could maybe share ways to protect our games and to avoid this.

So, does anyone know how to encrypt your game files?

(Of course, at the end of the day, encrypting a game is like putting a lock on a bike, someone can always come in with a pair of cutters to steal it, not even AAA games are safe from pirating, but thiefs would have to do that intentionally, just like I stole this quote from reddit 😅, if it was writting in wingdings, I probably would have been discouraged to do so)
Hi there!

I think this subject has been discussed a lot around here. Just do some searching that you will find out more information about it. Example("Rpg maker encryption"):
Theoretically, there's no 100% security. If you have somebody with bad intentions and high motivation, they will break any RPG Maker game.

I personally like publishing RPG Maker games as browser games, because then, you can just play them without downloading first. In this setup, you, as the game dev, can encrypt your plugins in a way that they only run on your site, and nowhere else! In other words, a plugin will check whether the URL of the browser is yours (in my case, play.aerosys.blog), otherwise it will quit the game.
Theoretically, there's no 100% security. If you have somebody with bad intentions and high motivation, they will break any RPG Maker game.

I personally like publishing RPG Maker games as browser games, because then, you can just play them without downloading first. In this setup, you, as the game dev, can encrypt your plugins in a way that they only run on your site, and nowhere else! In other words, a plugin will check whether the URL of the browser is yours (in my case, play.aerosys.blog), otherwise it will quit the game.
That's actually really clever! I just came across a video of a guy showing that there is a rpg maker mv/mz decryper out there, I had no idea there even were tools like that. At the end of the day, encryption and protection like this is mainly to discourage the casual thrifters from taking the game's resources, but like you said, anyone with enough motivation can break into a game.

Hi there!

I think this subject has been discussed a lot around here. Just do some searching that you will find out more information about it. Example("Rpg maker encryption"):
That's true! I'm thinking it might be worth compiling all the scattered resources on this topic into a single one, after I've done enough digging around, so that, instead of having to comb through multiple posts, people can just check a single masterlist
Stopped encrypting years ago. Game has sold a few thousand copies since then.
Stopped encrypting years ago. Game has sold a few thousand copies since then.

That's really cool! But do you really think there's causality between your game not being encrypted and it selling well? 😅
Theoretically, there's no 100% security. If you have somebody with bad intentions and high motivation, they will break any RPG Maker game.

I personally like publishing RPG Maker games as browser games, because then, you can just play them without downloading first. In this setup, you, as the game dev, can encrypt your plugins in a way that they only run on your site, and nowhere else! In other words, a plugin will check whether the URL of the browser is yours (in my case, play.aerosys.blog), otherwise it will quit the game.
To add-on to this, there are ways around this (i.e. Emulating a site). This is still a clever idea. Just reinforcing what he said in the beginning. So, for example, if Aero made some killer game that gotten popular, his game would probably be pirated within an hour. Big Corpos have more security and those get cracked within hours and sometimes within minutes.

The goal, if you are encrypting, is to just make it annoying enough that most won't bother, but I will say that, if someone wants to crack your game and sell it, that probably falls under "bad intentions and high motivation" because money is involved. With that being said, I don't think you're going to ever detract THOSE type of piraters.
That's really cool! But do you really think there's causality between your game not being encrypted and it selling well? 😅

Almost none at all.
To add-on to this, there are ways around this (i.e. Emulating a site). This is still a clever idea. Just reinforcing what he said in the beginning. So, for example, if Aero made some killer game that gotten popular, his game would probably be pirated within an hour. Big Corpos have more security and those get cracked within hours and sometimes within minutes.

The goal, if you are encrypting, is to just make it annoying enough that most won't bother, but I will say that, if someone wants to crack your game and sell it, that probably falls under "bad intentions and high motivation" because money is involved. With that being said, I don't think you're going to ever detract THOSE type of piraters.
I think this is a super cool topic to discuss. Because, like in the video I linked, someone got their game stolen even though it was a fairly unknown free game made for the brackey's jam. There are some people out there with really bad intentions, the thief made 60k in the app store from the game they stole!

I think we, small devs, should try to make our games annoying to decrypt, because, unlike AAA studios who can afford to ignore pirates and having their games cracked within the hour, since people will still buy their games, we can't unfortunately
I think this is a super cool topic to discuss. Because, like in the video I linked, someone got their game stolen even though it was a fairly unknown free game made for the brackey's jam. There are some people out there with really bad intentions, the thief made 60k in the app store from the game they stole!

I think we, small devs, should try to make our games annoying to decrypt, because, unlike AAA studios who can afford to ignore pirates and having their games cracked within the hour, since people will still buy their games, we can't unfortunately
I agree. What I'M saying is no matter how annoying this guy made it to pirate, this said pirate that stole it and sold for 60k would've pirated it BECAUSE money is involved. The person who did it is a classic example of a type of thief that is "bad intentions and high motivation." All I'm saying.
I agree. What I'M saying is no matter how annoying this guy made it to pirate, this said pirate that stole it and sold for 60k would've pirated it BECAUSE money is involved. The person who did it is a classic example of a type of thief that is "bad intentions and high motivation." All I'm saying.
Oh yeah, absolutely! In the end we are just putting locks on our bikes but there will always be people with cutters to steal them. The lock only discourages your casual thief from taking, but people with bad intetions and high motivation won't be discouraged
Saw a thread on this forum a few years ago. It listed the games that were unencrypted for new devs to learn off of.

Inspired me to unencrypt.
It's not exactly relevant to the subject, but when they extracted the graphics from Octopath Traveler over weeks or months, it made me think:
The developers barely blinked!
Spoiler
(I don't know if this is a well-known figure of speech in the West; we generally hear it in American films, so I thought it would make sense.)

And then I imagined:
Maybe they'll release several poorly made fangames...

And I haven't seen anything since then, in the end, it seems to me that they do it more for the challenge than for any other reason.

The only asset encryption system I saw that worked somewhat was one where the data wasn't actually graphical, just references for creating sprites in real time during game loading. Recreating the file interpreter was probably tedious, but I don't remember the name and didn't bother to find out if anyone else managed to do it.
It's not exactly relevant to the subject, but when they extracted the graphics from Octopath Traveler over weeks or months, it made me think:
The developers barely blinked!

And then I imagined:
Maybe they'll release several poorly made fangames...

And I haven't seen anything since then, in the end, it seems to me that they do it more for the challenge than for any other reason.

The only asset encryption system I saw that worked somewhat was one where the data wasn't actually graphical, just references for creating sprites in real time during game loading. Recreating the file interpreter was probably tedious, but I don't remember the name and didn't bother to find out if anyone else managed to do it.
That's true, I think many people specially in regards to AAA games, crack them just to see if they can 🤣
Well, you can check out @AceOfAces_Mod Cook Tool Deluxe.

I suppose the goal of any such custom encryption is simply to raise the barrier of entry higher than googling "RPG Maker Decrypt" and clicking on the first result.
In the end we are just putting locks on our bikes but there will always be people with cutters to steal them. The lock only discourages your casual thief from taking, but people with bad intetions and high motivation won't be discouraged
A better analogy would be that we're putting a lock on the bike, but hiding the key to that lock under the seat. No cutters needed – the key is right there.

That's literally what encryption is doing. The files are encrypted, and the key to unlock that encryption is included in an unencrypted file alongside them.

There's no way around this, however. You need to be able to access those files to play the game. If they're encrypted, you can't play the game without the key. This is true even if (as Aerosys mentioned) you only release it as a web game.

The net result is the same though – it only discourages a "casual thief". Anyone who really wants to can find the key and decrypt the files.

Personally, I don't think it's worth doing. But I know lots of people disagree.
Or just make a bad game nobody is interested in!

I had the encryption topic on my to-do-list, but this thread convinced me to quietly strike it off said list. One headache less, thanks a lot! ^^
Going commercial actually does change the risk profile a bit. When you sell a game, you’re not just releasing files. You’re releasing a product with a license, a price tag, and a paper trail. That makes it much easier to prove ownership and take action if someone tries to resell or repackage your work. Free projects tend to get targeted more often because there’s no commercial footprint, no storefront record, and usually no legal follow through. It’s not that the dev “deserves it,” it’s just that thieves look for the lowest risk targets from my experience observing this industry.

A commercial release signals that the creator is serious, has documentation, and is more likely to defend their work. That alone discourages most bad actors. Of course, nothing is 100% safe...even AAA games get cracked, but going commercial, using Steam’s DRM, and having clear branding can make your game a much less attractive target.
I just use the encrypt game files option on the deployment page of RPG Maker.

Also, I kinda think like this, if someone actually was motivated enough to steal my game, it would already need to be somewhat well known. I would probably be fine with someone else uploading it elsewhere as long as that means greater visibility. But I would probably be pretty annoyed if someone decided to charge money for my game and the income went to them instead of me. Would anyone actually bother stealing a free game?
Would anyone actually bother stealing a free game?
The entire game, maybe not. The pieces of the game (assets, code, etc), sure.

I would probably be fine with someone else uploading it elsewhere as long as that means greater visibility.
I'd be okay with this for a free game if the other person properly credited me. But there are still a lot of things that could be called "theft" even for a free game – either improper/false credit, or reusing assets without permission. (Just because a game is free does not mean that its assets are free to be used in other works.)

Note that I don't consider this to be an argument in favour of encrypting your game. The only way to really stop that sort of person is to catch them in the act.

Sure, encrypting your game makes things harder for those people, but it won't stop anyone determined. On the other hand, it theoretically can make things worse for legitimate players, as loading the images and audio now takes longer due to the need to decrypt them at the same time. (I say theoretically because in most real cases that worsening is unnoticeable.)

Original thread: https://forums.rpgmakerweb.com/threads/how-to-better-protect-and-encrypt-our-games.182177/