#Hiding source code with python.
28 messages · Page 1 of 1 (latest)
Do you want people to run it themself?
Are you wanting to make the bot for public use or what?
or just use by themself
run it themselves
then they will have to need access to source code
i have seen bots that use node.js & python locally ran but all configs are in a seperate file (which i’m running) i’m looking to basically just obfuscate the main code
The configs wont be hard
but they need to download the code so they can see the code themself if they wish
what if i compile the main.py into an executable would the config.yml (for example) still work?
I dont know but why do you want to hide your code?
If people run them themself they will see the code as they can decompline the .exe file
paid bot not wanting to show the source with license keys
But if people pay for your bot then host it for them
They dont have the headache of getting a server and there bot is always up to date
hm good point lol, i’ll figure it out anyway thank you for the help though
@tired verge, you just advanced to level 2 !
What you could do is have it download the files from a server when they get a license but this requires more work and doesn’t prevent them distributing your code further
yea that’s my main thing i’m trying to get, stop them from distributing my code
Well then I would recommend you hosting it
If they pay for it anyway you can even develop a simple panel which only modifies that specific config file but it can’t access the other files
So they can setup there own bot hosted on your hardware so there is no way to access the source
Dashboard is the term
It's not really possible to obfuscate your Python code, there's no actually mature python obfuscators, even if you use py2exe or something similar it still packs your raw python files in the exe and they can be extracted
@graceful crest, you just advanced to level 22 !
also you generally shouldnt store license keys in the source code unless its just the license key for that specific file
I know
let's just say: python was built to be readable. There is little way to acutally obfusicate it. The only semi-obfusicatable way is to compile it to bytecode