Hey, what's good programs for encrypting games? What do you guys usually use?
Good encryption programs for commercial releases?
Commercial Games Discussionfor js you have a nice list here.
there is also somes exe compiler, but at the expense of performance.
personally, protecting the code js is sufficient in my opinion to prevent the stealing or cracking of your source code.
i great random example for encode your code in base64
and you can also only use a compressor.
Tha remove all comment, and variable custom name in your js
there is also somes exe compiler, but at the expense of performance.
personally, protecting the code js is sufficient in my opinion to prevent the stealing or cracking of your source code.
i great random example for encode your code in base64
PHP:
<script type="text/javascript">
function base64_encode( str )
{
if (window.btoa) // Internet Explorer 10 and above
return window.btoa(unescape(encodeURIComponent( str )));
else
{
// Cross-Browser Method (compressed)
// Create Base64 Object
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r)}else if(r>127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t},_utf8_decode:function(e){var t="";var n=0;var r=c1=c2=0;while(n<e.length){r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r);n++}else if(r>191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t}}
// Encode the String
return Base64.encode(unescape(encodeURIComponent( str )));
}
}
function base64_decode( str )
{
if (window.atob) // Internet Explorer 10 and above
return decodeURIComponent(escape(window.atob( str )));
else
{
// Cross-Browser Method (compressed)
// Create Base64 Object
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r)}else if(r>127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t},_utf8_decode:function(e){var t="";var n=0;var r=c1=c2=0;while(n<e.length){r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r);n++}else if(r>191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t}}
// Encode the String
return decodeURIComponent(escape(Base64.decode( str )));
}
}
</script>
and you can also only use a compressor.
Tha remove all comment, and variable custom name in your js
Thanks, but what about images and audio?
@Jonforum by using an encryption method, a developer can prevent access to custom plugins they created for the project?
Even AAA games are crackable. Does the default encryption system not satisfy your needs :U?
@Kyuukon what encryption? i output a copy of my project file using the "Deployment..." feature inside the editor, but all plugins can be accessed and modified in the same manner as if you were navigating through the project file itself. my concern is of releasing a demo with the possibility of all of my custom plugins being copied right out of the deployment folder.
@Kyuukon i just read what is included in the help file in regards to the Enigma Virtual Box; basically, instead of needing to distribute the entire game folder you can just distribute the executable file? is that right?
edit:
i just went ahead and downloaded the enigma virtual box and ran a quick test. boy, that thing is wonderful! thanks for your help!
edit:
i just went ahead and downloaded the enigma virtual box and ran a quick test. boy, that thing is wonderful! thanks for your help!
As mentioned above, the idea is to make your sources of your project less as accessible as possible.
The more you complicate the task to the hacker, the more it will discourage.
I strongly advise you to avoid using default image encryption and files encryption from rpg maker mv sofware.
it's a bad attempt at protection Encrypt that takes 2 seconds to work around and easy steal all your resources.
these links are for educational purposes only. see Legal-Notification
https://github.com/Petschko/RPG-Maker-MV-Decrypter
http://petschko.org/tools/mv_decrypter/
for fast and good prectection example here:
256 bit Key (64 hexadecimal characters):
https://etherhack.co.uk/symmetric/aes/aes.html
for encryption protection picture, a good example here
CONVERT YOUR IMAGESTO BASE64
https://www.base64-image.de/
also texture packer do protection, currently Cocos2D only but more soon
https://www.codeandweb.com/texturepacker/contentprotection
for audio and video (allow playback of encrypted audio and video.)
https://www.html5rocks.com/en/tutorials/eme/basics/
https://www.html5rocks.com/en/tutorials/eme/basics/#common-encryption
but that's still basic protection as bad as rpg maker mv.
the best solution is to buy a Professional license protection, example donovo.
https://www.denuvo.com/
i dont know the price for license, but it maybe between 10 000$ to 50 000$
and the list of game was cracked or not with this thecnologie
https://en.wikipedia.org/wiki/Denuvo
i never test enigmaprotector, look good but no information on the performance and compatibility.
https://forum.enigmaprotector.com/viewtopic.php?f=6&t=8873
1. Core i7
2. 32GB Ram
3. SSD 256GB
It still have delay around 10 – 25 seconds. !!!!
The more you complicate the task to the hacker, the more it will discourage.
I strongly advise you to avoid using default image encryption and files encryption from rpg maker mv sofware.
it's a bad attempt at protection Encrypt that takes 2 seconds to work around and easy steal all your resources.
these links are for educational purposes only. see Legal-Notification
https://github.com/Petschko/RPG-Maker-MV-Decrypter
http://petschko.org/tools/mv_decrypter/
for fast and good prectection example here:
256 bit Key (64 hexadecimal characters):
https://etherhack.co.uk/symmetric/aes/aes.html
for encryption protection picture, a good example here
CONVERT YOUR IMAGESTO BASE64
https://www.base64-image.de/
also texture packer do protection, currently Cocos2D only but more soon
https://www.codeandweb.com/texturepacker/contentprotection
for audio and video (allow playback of encrypted audio and video.)
https://www.html5rocks.com/en/tutorials/eme/basics/
https://www.html5rocks.com/en/tutorials/eme/basics/#common-encryption
but that's still basic protection as bad as rpg maker mv.
the best solution is to buy a Professional license protection, example donovo.
https://www.denuvo.com/
i dont know the price for license, but it maybe between 10 000$ to 50 000$
and the list of game was cracked or not with this thecnologie
https://en.wikipedia.org/wiki/Denuvo
i never test enigmaprotector, look good but no information on the performance and compatibility.
https://forum.enigmaprotector.com/viewtopic.php?f=6&t=8873
1. Core i7
2. 32GB Ram
3. SSD 256GB
It still have delay around 10 – 25 seconds. !!!!
you *could* pack them as a standalone plugin, and upload it to a private server.
according to the US patent law, even if you don't have a registered patent, anything uploaded under your name is automatically protected under you.
if you go an register the code as intelectual property you get access to more legal coverage, but just by uploading it you have some leverage in case somebody steals it.
@gstv87 that is interesting information.
Considering default encryption causes CTD's if using Dragonbones, I'd say no.
Maybe you could encrypt everything using a SHA256 hash. That one is considered unbeatable even today, because without initial input it is very hard to see where the hashing is supposed to stop. But it means making a file decrypter and a place to keep initial inputs.
A hash is one-way. Useful for verifying file integrity, but utterly useless for obfuscating data since you can't get a usable version back after running it through the hashing function.
I really just want RPG Maker MV like encryption for images and audio that I don't have to think much about, which doesn't break the game.
Default encryption doesn't break the game.
It does if you use Dragonbones.
In that case it would probably be better to fix the plugin you're using. Is the dev still around?
I've posted a log about it over a month ago. Someone mentioned to Yanfly on his patreon ages ago and he said one should use another encryption but didn't leave what to use instead.
Many people seemed like I was an idiot for using the base encryption and said I should just use another encryption.
http://yanfly.moe/2017/11/07/colossal-conquest/
This game uses encryption but no word on what encryption.
They probably said so because the base encryption is very easy to break, but if the Dragonbones plugin doesn't work with it, it probably won't work with others either, unless you use some kind of encryption that works like a shell for the game (instead of being coded inside the game itself).
The game you linked uses something like that.
Original thread: https://forums.rpgmakerweb.com/threads/good-encryption-programs-for-commercial-releases.87348/