encryption – How to encrypt/decrypt file contents using Qt? – Education Career Blog

This question has been asked many times before by others, but somehow the answers made me more confused.

In my Qt application (for symbian devices), I have a file with user details (Email ids n passwords) which I store in target device, so want to encrypt this data in the file to keep it secure. I don’t need a super secure encryption techniques, just any moderate one would do. How can I do this using Qt?

I downloaded QCA and tried installing but it failed on Verifying Qt 4 build env.. Reason:Unable to find the qmake tool for Qt 4. (I’ve set the QTDIR to the installed qt path)

Can someone direct me to proper installation steps, examples or alternatives to QCA? (or may be even Symbian encryption APIs would do)

Thanks

,

You can also use the data caging provided by the operating system and store your files in the application’s private directory. You can get its location with QApplication::applicationDirPath().

For encryption in Qt apps I usually use the plain old openssl C library. It’s also available on Symbian devices.

Leave a Comment