Today I will show method, which stores sensitive data in Windows Credentials. I will use python library keyring to store and get passwords from Windows Credentials.
This code needs to be run separately before. If you plan to use it on more machines, you have to run it on every one.
From now, the password is stored in windows credentials manager
In order to get stored password I will run the code below:
The password is stored in pw variable and could be used later for accessing systems.
This should be the very first step when you are starting with securing your automation scripts. Next could be start of using of passwords manager, e.g. LastPass.
Anton Hajdu