How can you secure sensitive information, like API keys, in a Flask or Django application?

  • Embed them directly in the code
  • Encrypt them using a reversible algorithm
  • Publish them in the application's source code
  • Store them in environment variables
Sensitive information, like API keys, should be stored in environment variables for security. Embedding them directly in the code or publishing them in the source code can expose them, and reversible encryption is not recommended.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *