Common string encryption

Cornelius Schumacher schumacher at kde.org
Tue May 20 10:13:17 BST 2003


On Dienstag, 20. Mai 2003 10:03, Michael Goffioul wrote:
> Is there a string encryption mechanism available in kdelibs. I want
> to store a password in a config file (upon request from the user, like
> in kmail), but I want to avoid to store it in clear form. A basic
> encryption would increase security a little bit. If if doesn't exist,
> this could be an addition to KStringHandler class. What do you think?

There is KRES::Resource::encryt/decryptStr() in libkresources. This certainly 
isn't the best location so I would be happy to move it to an more appropriate 
location. KStringHandler would probably ok. As these functions use a 
symmetric encrption, it might also be a good idea to use only one function 
"QString KStringHandler::cryptString( const QString & )". Would that fit your 
needs?

-- 
Cornelius Schumacher <schumacher at kde.org>





More information about the kde-core-devel mailing list