[Qt-interest] cryptography using qt
Andre Somers
andre at familiesomers.nl
Wed Nov 9 18:30:20 CET 2011
Op 9-11-2011 18:11, Karl Ruetz schreef:
> For encryption in Qt apps I usually use the plain old openssl C
> library (openssl.org).
>
> Depending on the app, the format of the file, the platform, and just
> who it is you are trying to hide content from, it might be sufficient
> to do some kind of low-level obfuscation of the text (if the file is
> text). You could, for example, XOR the contents of the file with
> arbitrary value (such as "QT") or a small number of values that you
> use on successive characters ("QT", "63", "B12") the loop to use "QT"
> again.
For simple encryption/decryption like the above, I have posted a class
called SimpleCrypt on the devnet wiki. You can find it here:
http://developer.qt.nokia.com/wiki/Simple_encryption It basically uses
the OR trick with a 64 bit key.
Perhaps it can help you, but don't pretend it to be strong encryption.
André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111109/87614078/attachment.html
More information about the Qt-interest-old
mailing list