Reputation: 166
I can get the serial ARM CPU (Raspberry Pi) information with a C/C++ program. I could get this information from /proc/cpuinfo but then it is very easy to hack the program. Does anyone know how can the serial number obtained through C/C++? I want to use the serial number for cryptographic operations.
Upvotes: 0
Views: 2508
Reputation: 65244
This one is easy: Start with fd=fopen("/proc/cpuinfo", "r");
What I ofcourse mean, that to distrust /proc/cpuinfo
means to distrust the running kernel - under this premise, all bets are off.
If you want to build a DRM system (i.e. software bound to a physical device), please remember: The first rule of DRM is, that DRM doesn't work.
Upvotes: 3