Hiding the login and password in the Python code
📁 Advanced Python Topics, question
How can you encrypt a login with a password in the code itself? Or in any other way, to make it possible to give them to other people, since the code itself should be open and accessible for viewing by other people.
conn = pymysql.connect(
host="xxc.ru",
port=3306,
user="user",
password="password",
db="test",
charset='utf8'
)
Is there any point in using encryption in this case, as asked in the question?
No answers yet.
Log in to leave an answer
Blogs