Python Forum
How secure is the use of "secret" import?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How secure is the use of "secret" import?
#6
(Nov-07-2023, 11:58 AM)ejwjohn Wrote: The question in my opinion is still valid in that if you create a file within your system which contains "secrets" and your system has been hacked then there's a very good chance that your "secrets" are no longer "secret".

If a hacker has access to your System, then you've lost, and it doesn't matter where your credentials are saved.

Storing credentials in a file next to your source code, prevents accidentally uploading code with credentials included. This is why we use extra files for credentials.

You could try following:
  • Make a small example project and upload it to github
  • Then add credentials to your source code and push the change
  • Then try anything, to get rid of the credentials in source code and it must not be visible in commits. Good luck.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: How secure is the use of "secret" import? - by DeaD_EyE - Nov-07-2023, 01:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to secure API key when sharing quarinteen 2 427 Jan-19-2024, 04:46 PM
Last Post: deanhystad
  Extract Httponly, Secure, domain and path from a cookie randeniyamohan 0 1,719 Jan-26-2020, 04:59 PM
Last Post: randeniyamohan
  Secure App Data Storage for Kivy Android App JonPC 1 2,507 Nov-08-2019, 03:42 PM
Last Post: luke

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020