PDA

View Full Version : password caching method



ramazangirgin
30th June 2009, 08:17
i want to cache passwords that is being used by two or three of qt applications. How or where must i save this passwords ? The secure method is save all passwords in memory as enrypted. But in which application ? All my applications can die and start again. so if i save password in one application segment when application die passwords will be lost.
Is there any other method do you suggest ?
Thanks in advance
Ramazan

AcerExtensa
30th June 2009, 09:47
Maybe it is better to save pass with QSettings? And then let last app delete this value...? On windows you can use WINAPI Mutex for checking if your app the last one.... or something like that.... :)

wysota
30th June 2009, 10:20
You can use shared memory for that. You can access shared memory from Qt using QSharedMemory.