M
M
Mu57Di32012-12-05 12:30:15
Python
Mu57Di3, 2012-12-05 12:30:15

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

4 answer(s)
A
Antelle, 2012-12-05
@Mu57Di3

Maybe so ?

I
ixSci, 2012-12-05
@ixSci

Store the key in CryptoAPI(Windows) and Keychain(Mac).
Everything else is safe and does not smell.

A
AxisPod, 2012-12-05
@AxisPod

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.

U
Urvin, 2012-12-05
@Urvin

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 question

Ask a Question

731 491 924 answers to any question