Ask coding questions

← Back to all posts
Can you hide files?
PYer (2392)

I don't mean hiding repls. You need the hacker plan for that. But lets say there is a file in a repl that you do not want anyone to see. Maybe it can hold some information that must remain confidential, or its a list of people who have won and lost at the game that only you want to know. I am just wondering if there is any way to do that.

Commentshotnewtop
cyap (0)

That is also what I was trying to ask!!!

PYer (2392)

@cyap i was told to use .env problems. they mostly work, unless you want it to be public (the repl) then an error will be caused because the file disappears if it is not in your account

timmy_i_chen (962)

Indeed you can! You can use .env files - check out the docs here: https://repl.it/site/docs/secret-keys