Skip to content
← Back to Community
How to make a private folder
Profile icon
Thanatos31005

hello I'm creating a discord bot and I need my json files to be private how can I do that without upgrading

Voters
Profile icon
Neilsohal
Profile icon
HardikKumar1
Comments
hotnewtop
Profile icon
19wintersp

You have very basic options for this. The Hacker Plan's private repls are the best solution, but if you are unwilling, there are two main options:

  1. Store the data in your ".env" file
  2. Encrypt the data and store the key in your ".env" file
Profile icon
Thanatos31005

how do i encode it
@19wintersp

Profile icon
Thanatos31005

@19wintersp how do i encode it

Profile icon
19wintersp

@Thanatos31005 It will depend on the programming language you're using. NodeJS has the built-in crypto library, you can use the cryptography library in Python. Both of these have encryption methods.

Profile icon
Thanatos31005

@19wintersp im using python

Profile icon
19wintersp
Profile icon
Coder100

you cannot. The only files that are private are .env files.
To learn how to use them: https://docs.repl.it/repls/secret-keys

**note: ** you cannot just rename files to .env and expect it to work!

Profile icon
Whitcj

@Coder100 what would you do if replit does not allow you to use a .env file anymore

Profile icon
Whitcj

nevermind i got it

Profile icon
kris10chiang

@caaaaaaaaaallum wait so how did u do it

Profile icon
kris10chiang

@caaaaaaaaaallum wait so what did u do

Profile icon
HardikKumar1

Did you get a way out for this? @Thanatos31005

Profile icon
[deleted]

You can try encrypting the file, but I would just use an external editor

Profile icon
RYANTADIPARTHI

that's not possible.