Answer the question
In order to leave comments, you need to log in
Options for storing access passwords to third-party resources in the program settings
Actually I ran into a problem writing a program in Python / Qt and one will work with several third-party sites. Accordingly, in the program settings, the user will have to specify the login and password for his account. Because of this, the question arose of how to store passwords in the settings, it's just a text file and storing passwords in clear text is not good. The option with encryption by key suggests itself, but it is also a problem with it, the key must be stored somewhere. In general, can anyone suggest a solution.
Answer the question
In order to leave comments, you need to log in
Store the key in CryptoAPI(Windows) and Keychain(Mac).
Everything else is safe and does not smell.
It can be done on the basis of a master password and encrypt using it. At startup, one password is entered and that's it.
In my case, when encryption was more a means of protecting against a fool, so that he could not simply read the file, I used XTEA from the unique identifier of the computer - the number of the hard drive, processor, and other characteristics that were easy to pull out.
At the same time, the data sources in Win and Lin were different.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question