How do i prevent people from seeing my code?
I really don't want people to see my code, just run it.
How do I do that? Do I need a "hacker" account? I just can't figure this out....
thank you! :)
On replit, you'll need the hacker plan (here) to have private repls where no one can see the code except you and people in multipliyer repls.
You can also put secrets (like a bot token) by creating a .env file and placing it there. However, that can't be used anymore; you'll have to add it by clicking the lock icon in the sidebar.
Good luck! :D
Use a local ide, problem solved. Other solution, overly complicate your code so no one can understand it. Last solution, don’t run production programs on replit, it’s designed to be something like a mix of collaboration and GitHub.
@IMayBeMe This will be my last time on the site anytime soon, just to reply to this. It isn't exactly 'production code'! It takes a single line of text input and outputs a simple code. That is all it does. There isn't even any files being written.
I just thought this might work to avoid the complexities of setting up web hosting for such a trivial little thing.
I appreciate your input.
you can't make your code hidden. But with hacker you can make private repls, the only downside to those are that no one can see them (only you) so no one can run them either (unless you invite them to join your repl)
@CompteOfficiel Replit is designed with sharing and collaboration as the core. See the Beta
Apps option. You can see many people share their thing that they made. And you will sometimes see people posting about joining a team. And also, as long as you don't share your Repl to anyone, no one is gonna randomly enter your Repl unless they have some kind of superpower.
@Wumi4 But I want people to run my code, just not see (and potentially steal) the code. The project I'm working on involves cryptos and is very delicate..it is small but contains work with hashing algorithms and crypto keys that really shouldn't be public.
See what I mean? I mean I see that you can make private global variables, which is a start, but doesn't go far enough in this case...unless maybe those global variables can contain runnable code, which I guess I could look into, it being Python after all..