How to encrypt and decrypt text/number heavily to the point it's almost impossible to decipher by an other person than the developer itself

Okay so I’m making a module script that is like EXTREMELY private, right? Like I dont want anyone get access to my code for really important reasons as it’s also supposed to stay private between the people I extremely trust and even then they only have the code to run the module and not the module itself. So I was planning to make it fire through a pastebin code like those exploit guis do (yes I researched them because they appeared to make it fairly fine) for some clues, leads and examples on how I can achieve this. I cannot exaggerate it enough but this module will be very useful for me and it’s really huge and I REALLY need it to be uncopiable so please, if anyone has any ideas, leads and solutions please let me know.

TLDR: I need to encrypt a module require’s asset id to be completely private so no one can copy it.

Making it through other websites and running the code from there seems to do the trick to not copy paste huge code so if there is alot of code, it’s no matter but the key has to not be shown AT ALL and neither does the solution to it or another required module because those make encrypting easier.

Can’t u just upload the modulescript to roblox and use it as an assetLoader, That way people are also unable to view the code and u require it like require(1234567890).

Another thing u can do is Obfuscating your code but that is just a hazzle you want to avoid.

1 Like

Just make your own encryption algorithm. It really isn’t that hard. What you do with the numbers to obfuscate them are up to you, but here are some examples:

  • encoding to base64
  • encoding to base8
  • encoding to base16
  • Caesar cipher
  • random math operations controlled by a math.random seed
  • a combination of everything above, repeated and performed in a random order controlled by a seed

In fact, I’ve done just that before, so you can definitely do it yourself.

1 Like

the thing is what if they can reverse engineer it using that

well yes but it needs to be open to everyone in the marketplace for it, does it not? so they could just get the id go to the page and look at the code there

They can also find it on the toolbox, except for obfuscating the code, you can do a whitelist so if this player that loads the module get’s kicked out because he’s not in the whitelist

Any encryption/decryption process can be cracked given enough clues and time. It’s mostly a matter of don’t make it obvious, give it strength against common cracking techniques (i.e. frequency analysis), and overall make it as hard to break as possible.

the issue here is that they can just get the module and modify it and add themselves to it even if so

Yea, i was thinking about that

any clues overall on how to do so? I mean I can see how it could be done but it could easily be reverse engineered unless the ran code is not visible by any means so pastebin is probably eliminated cuz of that. maybe I could do something with github? I mean I never used it so I dont know it’s abilities but the answer could lie in that maybe? I really dont know and have any clue

I’m just gonna say right now that I question the practicality of this entire endeavor because of this: New Require Introspection Feature

On the topic of making effective encryption methods, my advice is do a bunch of research on pre-existing encryption methods and get creative when making your own.

Anything can be cracked given enough time, even the SHA-256 algorithm. If you’re worried about that then the idea of encryption itself must’ve really went over your head

Even then, you should be worried more about people brute-force searching the entire catalog for your module’s asset id lol

Recommended article:


iirc obfuscated code are not allowed on the marketplace because they’re inherently unsafe, I could be wrong though

You are correct. Here’s what someone recently said about it: https://devforum.roblox.com/t/2814058/4

well anything works as long as it’s just simply not worth it to try as much to reverse engineer it or decrypt it manually

Just read it and you’re correct, it’s quite not effective anymore so I’ll drop this topic.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.