Safe way to store mysql server credentials in flask?
问题 I was wondering about the safety of some thing in my app.py flask app. First the database, I'm using mysql and currently I am connecting to it in the following way: # Config MySQL app.config['MYSQL_HOST'] = 'localhost' app.config['MYSQL_USER'] = 'root' app.config['MYSQL_PASSWORD'] = 'password' app.config['MYSQL_DB'] = 'databasename' app.config['MYSQL_CURSORCLASS'] = 'DictCursor' And to me this feels very weird, just putting in your password in plain text etc. I've been searching online but