How to hide database from user
I'm making a little sign in thingy, but in the future this data that is in a env file is going to expand and I MIGHT need it to work on a database instead. How do I hide a .db file from users in repl it
IcynDevz (725)
The database
is not in a file.
I think.
Coder2195Text (35)
@IcingHackz .db? im using sqlite3 in python
IcynDevz (725)
@Coder2195Text what nvm, I thought you were talking about normal python
.
Coder2195Text (35)
@IcingHackz YEAH I did import sqlite3 then connected it to a .db file
IcynDevz (725)
@Coder2195Text but I don't know how to hide a .db
file...
I recommend use replit db: https://docs.replit.com/misc/database
ALSO WHY IN THE WORLD ARE YOU USING .ENV TO STORE DATA
1. it won't work
2. .env is meant to store secrets (like tokens, database keys, etc.), they are NOT meant to store code or anything like that.
@Coder100 does the database support lists inside keys
yeah of course lmao @Coder2195Text
maybe you should actually try it out first
https://tryitands.ee @Coder2195Text
@Coder2195Text
If it didn't, there's this thing called JSON that would let you do it otherwise.
indeed
@SixBeeps
@Coder100 Hey the entire point is to have other users access it but not see it since this is a virtual computer for everyone