Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

qt application activation

Does anyone have experience of implementing key based product activation inside a QT application? Either standalone i.e. the key is validated on the users machine or server based i.e. the key is validated on the server and the application is enabled.

I'm planning on distributing on Mac, Windows and Linux. The commercial solutions I've seen so far have been far too expensive for a poor, bedroom based developer!

like image 343
Paul Avatar asked Mar 28 '11 23:03

Paul


1 Answers

As a small or indie developer you best choice maybe to roll your own activation key system. There are a lot of ways to generate CD-Keys. What you need to do depends heavily on the software. If your costumer is small and most business then you probably could get away with a hashing scheme. The idea would be to generate a key for each customer that has information about the customer hashed into the key. This type of key is based round the idea of keeping honst people honst. If this is something being sold openly on the internet you may want to look at a public private key system with an activation server that connects a users MAC to their key. As a customer these thins suck but id can reduce piracy.

QCA is Qt Cryptographic Architecture http://delta.affinix.com/qca/

Botan is a nice looking cryptography library, I read that Qt Creator uses it http://botan.randombit.net/

You can use QCryptographicHash to hash keys http://doc.qt.io/qt-5/qcryptographichash.html

Info on public keys http://williamstallings.com/Extras/Security-Notes/lectures/publickey.html

like image 100
Byron Avatar answered Oct 29 '22 21:10

Byron