[Interest] Unique - Hardware bound - ID
Konrad Rosenbaum
konrad at silmor.de
Wed May 15 12:52:58 CEST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130515/8da76687/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130515/8da76687/attachment.sig>
More information about the Interest
mailing list