0

Is there any unique identifier like the serial number (00000000xxxxxxxx), which is specific to an exact board? And which cannot be spoofed or cracked or changed? and can also be retrieved to identify the board type?

Thank you

benny96
  • 3
  • 1
  • 3

1 Answers1

0

the only 2 identifiers which are more or less unqiue, I know about, are:

  1. the serial number which you already mentioned, find more details about it here
  2. the MAC address of the eth0 or wlan0 interface. for eth0 you could get it by using cat /sys/class/net/eth0/address or ifconfig eth0 | grep HWaddr | awk '{print $NF}'. The result will be something like b8:27:eb:2e:6a:20

The MAC address is only 48 bits and the serial number looks even less. So they are by no means cryptographically strong.

You could now generate a HMAC of these values, or maybe from both (by chaining).

You should consider that it is possible to disable the wlan0 interface (and probably the eth0 aswell). Which would void your MAC address result, so you need to test for that.

Eugen
  • 488
  • 3
  • 12
  • The MAC address is 24bit OUI, which is fixed for a specific vendor, and 24bit serial. Then, afaik, the MAC48 is generated from (lower bits?) of the Pi serial number. – TheDiveO Jul 25 '17 at 15:32