Python Forum
Hiding username and password on sql
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hiding username and password on sql
#2
What I did is this, not sure if this is the best solution.
I created another python file called sql_creds.py, then I copy and pasted username and password there.
Then on my main.py, I imported sql_creds.py as creds. Then I used creds.username, and creds.password.

But this doesn't the solve the problem either because now someone can open sql_creds.py to get the login. I can probably hide that file, but that's not a solution either.

How do you hide API, passwords etc on your code?
Reply


Messages In This Thread
Hiding username and password on sql - by tantony - Oct-20-2022, 07:04 PM
RE: Hiding username and password on sql - by tantony - Oct-20-2022, 07:22 PM
RE: Hiding username and password on sql - by rob101 - Oct-20-2022, 08:31 PM
RE: Hiding username and password on sql - by rob101 - Oct-20-2022, 08:53 PM
RE: Hiding username and password on sql - by wavic - Oct-21-2022, 07:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  checking username newbexx 2 85 4 hours ago
Last Post: newbexx
  Pulling username from Tuple pajd 21 3,977 Oct-07-2022, 01:33 PM
Last Post: pajd
  Hiding "undesired" info Extra 4 1,909 Jan-03-2022, 08:25 PM
Last Post: Extra
  Trying to create a conditional with a username Realen 2 1,919 Jun-20-2020, 12:44 AM
Last Post: Realen
  Client OS username ImPyBoy17 5 2,823 Sep-24-2019, 10:18 AM
Last Post: buran
  problem with "hiding" object league55 4 3,378 Jan-16-2018, 11:21 PM
Last Post: league55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020