AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Background subprocess python8/22/2023 ![]() ![]() This worked perfectly fine when implemented in my main code.Īs the next step I searched for a way of running a user's cmd prompt from the python script. X = keyring.get_credential(service_name="My_app", username=None) Then I wrote a simple script for loading the user credentials in pycharm: import keyring > t_password(service_name="My_app", username="universumum", password="pwd123") I started by familiarizing myself with keyring by running this in the cmd prompt: > python My problem arises when it comes to taking it to the next level - I feel like I need some guiding with regards to implementation, user safety as well as if I am on the right track. I have applied this to the basic case, that would be storing my own login credentials for usage while building the code. With this in mind, I was thinking about using keyring to encrypt and store credentials. For a smooth and safe process, I want the app to save login credentials on the user's disk, encrypt them and then read them when the program is run. The app will be used by my work colleagues, and they will need to input a personal token in order to access an API that the app connects to. I am writing a program for my first ever app in Python. ![]()
0 Comments
Read More
Leave a Reply. |