I've written a Python script which logs in to my toll road account and retrieves my balance, then logs into my email and sends my balance to my phone as a text message. I have the script set up on a windows 8 machine as a scheduled task to run at a specified interval, whether I am logged on to the PC or not (my PC admin login & password are stored in the scheduled task, to run as admin - PC login password encrypted/otherwise secured by whatever means Windows uses).
The Python script accesses my logins for the toll and email accounts from an unencrypted text file on my C:\ drive. I'm not keen on leaving unencrypted files with my sensitive login info laying around.
Is there any way I can encrypt the password file by user? What I mean is:
If another user logs onto my PC and opens the text file, it will be encrypted.
If someone hacks my computer and opens the text file, it will be encrypted.
If I log onto my PC and open the text file, it will be unencrypted
If someone else or nobody is logged onto my computer and scheduled task runs, using my username and password, the text file will be unencrypted for my script.
Any input welcome. If you have some other idea about the way the encryption should work then please suggest.
Thanks
The Python script accesses my logins for the toll and email accounts from an unencrypted text file on my C:\ drive. I'm not keen on leaving unencrypted files with my sensitive login info laying around.
Is there any way I can encrypt the password file by user? What I mean is:
If another user logs onto my PC and opens the text file, it will be encrypted.
If someone hacks my computer and opens the text file, it will be encrypted.
If I log onto my PC and open the text file, it will be unencrypted
If someone else or nobody is logged onto my computer and scheduled task runs, using my username and password, the text file will be unencrypted for my script.
Any input welcome. If you have some other idea about the way the encryption should work then please suggest.
Thanks