[Interest] Unique - Hardware bound - ID

Adrian Stern adrian.stern at screenfood.com
Wed May 15 13:07:05 CEST 2013


Thanks Konrad

I believe the mac address will suffice. In addition I will probably some other hardware related data and create a hash from it.
I emagined there would be a solution for this problem but it semes its not that easy.

Case closed.

Freundliche Grüsse / Best Regards / Meilleures salutations
Adrian Stern

From: interest-bounces+adrian.stern=screenfood.com at qt-project.org [mailto:interest-bounces+adrian.stern=screenfood.com at qt-project.org] On Behalf Of Konrad Rosenbaum
Sent: 15 May 2013 12:53
To: interest at qt-project.org
Subject: Re: [Interest] Unique - Hardware bound - ID


On Tuesday 14 May 2013 22:27:23 Alex Malyushytskyy wrote:

> Such things are normally resolved using MAC address on any system, which is

> unique for every network adapter,

> But there always may be a system which does not have network adapter, have

> a few network adapters or does not let you to obtain MAC address unless you

> are a root (Linux)

>

> I do not think Qt support this, but if not counting some complications

> listed above, native for system code you will have to right is easy.



You can get MAC addresses via QNetworkInterface::allInterfaces().



Some encouragement: 99.9% of all PCs and Laptops do have a network card and/or Wireless Interface. Unless you target the 0.1% of non-networked machines you can assume to have one (even if it is unconfigured). At the very least if your app has network access then you can assume ethernet (modem-only machines are exceedingly rare these days).



Some words of caution: MAC addresses can be changed in software. Depending on your paranoia level you may not want to rely on them - in that case you may want to think about hardware dongles to secure your app.







Konrad

Diese E-Mail und ihre Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail inklusive Anhänge. Das unerlaubte Kopieren sowie die unbefugte Weitergabe der Inhalte dieser Mail ist nicht gestattet.
This e-mail and any attachments may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail including the attachments. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130515/4eede54a/attachment.html>


More information about the Interest mailing list