MZ Possible to encrypt plugins after deployment?

Not sure if this is the right spot but here goes.
I've finally reached a point where I'm comfortable allowing the prologue of my game to be played and was wondering if it was possible to encrypt plugins.
I'm not too familiar with the process.
Specifically I have VisuStella plugins and others that I'm assuming if I push the demo out that someone could just grab the plugins and call it a day.

Thanks in advance!
basically no - which is why Visustella and similar do not require you to encrypt them when using them.
obfuscating is usually the maximum you can do, and Visustella has already done that.

that is because your computer needs to be able to read the code to process it, and most methods to encase games with protection on that level cause more problems than they solve (virtual boxes and similar)
I see! I suppose I was overthinking the whole process.
Thanks for the clarification!
It's kind of sad that the RPG Maker can't bundle up all the resources into containers or archives rather than exposing them like this. An inhouse solution would be such an improvement.

I'm aware, you can decrypt everything, so there is no "real" protection, but every step of extra effort would decrease the amount of fingers in there at least a little.
@Zia_
there are such encryption solution for everything but for the code, even build in (although the build in encryption is weak, it exists for pictures and other resources)

you simply cannot encrypt code that is supposed to be run inside a browser, that is a technical impossibility.
They would have to remove web deployment and in general the multiple deployment options in favour of direct closed-source player programs before they can encrypt code/plugins.
What you can do is to open your plugins in a text editor and strip off the "headers", i.e. the section with human-readable help, params, and plugin commands. Your plugins will still work; however, one can no longer manage plugin parameters nor call plugin commands, making most of them practically unusable.
What you can do is to open your plugins in a text editor and strip off the "headers", i.e. the section with human-readable help, params, and plugin commands. Your plugins will still work; however, one can no longer manage plugin parameters nor call plugin commands, making most of them practically unusable.
unless the code is readable to make so...

I've finally reached a point where I'm comfortable allowing the prologue of my game to be played and was wondering if it was possible to encrypt plugins.
I'm not too familiar with the process.
there may some way to make it "harder" like: Kagedesu [protector].
or a paid version [Cooktool Deluxe] which makes it harder (or use both).

but there may be other alternative to protect paid plugins though =)
I have a plugin protector program that removes the annotations for you: https://casper-gaming.itch.io/plugin-protector

It removes the annotations which is how the editor displays plugin parameters and MZ plugin commands. Without being able to set up any plugin parameters or use plugin commands, most plugins would be unusable, and it is not easy to get around that for any plugin thieves as they would need to recreate the parameters and plugin commands from scratch (they are completely gone, not hidden or moved somewhere else). It also has a safety check to make sure you use it only on deployed projects so you do not accidentally do this to your main project you are working on.
Just to add: if reformatting plugins, I would strongly suggest you ensure that the author's terms of use permit such a modification, and that you leave intact any legal parts like the license or copyright notice.
you simply cannot encrypt code that is supposed to be run inside a browser, that is a technical impossibility.
What's impossible about it? Obviously, you cannot encrypt the entire code – at least some part of the code needs to remain unencrypted. However, the plugins are loaded "on demand", so to speak. It would certainly be possible to add a decryption step to that loading. I don't think it would be easy (I doubt it's trivially patchable; you might need to rewrite the PluginManager to use XHR to load them - they're currently loaded synchronously… or another option would be that the decryption code could be embedded into each plugin by a postprocessing tool), but it would be possible.

I do think it really isn't worth the trouble, though.

they are completely gone, not hidden or moved somewhere else
I would note that this statement is not strictly accurate.

Certainly, if you delete the annotation comments from the plugin file, they're completely gone and can't be fully recovered in their original form. But I wouldn't go so far as to say they're entirely unrecoverable. It depends on the complexity of the parameters, but you can probably recover at least the simpler ones (and likely all of them) by examining plugins.js. Plugin commands in MZ could theoretically be recoverable this way as well, as long as the game actually uses them, but in that case there's no central place to find them so it would be much harder.

To put it another way: even without the annotations, it's trivial to get a list of parameters that the plugin uses. Of course, converting that list back to annotations is a lot of work for a prospective thief, which is presumably the point.

I'll also note that this form of protection won't help for all plugins. Some plugins don't even use parameters, after all.

one can no longer manage plugin parameters nor call plugin commands
This sounds a bit misleading, so I'd like to clarify that you can still call plugin commands just fine (as in, any calls to plugin commands will still work); what you can't do is open up the editor and create new calls to plugin commands.
Thank you for your insight, everyone. I understand everything a little better now with how this works.

Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/possible-to-encrypt-plugins-after-deployment.183449/