when I run my login project it gives me error “key error: password”
password = os.environ['password']
hack_code = os.environ['hack code']
password_entry = ""
password_entry = input("enter password: ")
if password_entry == password:
print("hack code is " + hack_code)
I’ve moved this to #code-help:python as it isn’t a bug.
I added the environment variables in
I see you are attempting to make “global environmental variables.” These were taken out of replit (that is,
.env files have been deprecated). There is currently no way to have public environmental variables, though you could submit a ticket. I suggest you look into encrypting your environmental variables.
Using secrets you can create environment variables which you can access within your code (as this user has done), however you cannot create them in code or use a
so what should I do because i am confused by the term “encrypt” to i import a encrytion libary
um yes that is what I would recommend
what does “submit ticket” mean?
Make a post in #feature-requests (and detail it too!)