How to secure sensitive informations in settings.py

769 views Asked by At

I have some sensitive information about MySql, celery, and redis in my settings.py. I read that its better to keep them in an .env file with python-dotenv or keep them in the linux's environment variables. But I am confused in this point. Even if they are in a separate file like .env or in environment variables they are still plain text.

Is there way to keep them encrypted in a file or environment variable and make django possible to read them ? I don't want them to be plain text in somewhere.

0

There are 0 answers