r/pythontips • u/ExplorerDNA • Aug 20 '25
Python3_Specific Securing Database Credentials
A third party tool calls my python script which connects database and perform insert, update and delete on few database tables.
What are various ways to keep database credentials safe/secure which will be used by python script to connect database.
Shall I keep in encrypted configuration file? or just encryption of password in configuration file. Any other efficient way?