Aug-30-2022, 10:41 PM
what is the best way to embed passwords in python scripts?
I am wanting to automate tasks that would typically require credentials.
I've been looking into keyring and this works great when you run the script from Command line in windows.
but in WSL it makes you type in a master pass which stinks for automated scripts (cron/scheduled tasks).
pyKeePass looks pretty cool and it works well. I was thinking about using a keepass database then compile the Python script using Pyinstaller so the master pass would be "hidden".
i would prefer to use keyring and just make it to where I don't have to type in the master pass
I am wanting to automate tasks that would typically require credentials.
I've been looking into keyring and this works great when you run the script from Command line in windows.
but in WSL it makes you type in a master pass which stinks for automated scripts (cron/scheduled tasks).
pyKeePass looks pretty cool and it works well. I was thinking about using a keepass database then compile the Python script using Pyinstaller so the master pass would be "hidden".
i would prefer to use keyring and just make it to where I don't have to type in the master pass