We would like some code to check for a Mac Address on the Network Card, a hard drive identifier, some CPU info, and whatever else you recommend. We want that info to be made into a hash.
I'd like the code in C++, but if it cannot be done, I could be talked into accepting .Net code.
## Deliverables
I would like a class that looks something like:
class NodeLock {
public:
// Description:
// Given an input hash, does this system produce the same hash?
bool DoesThisSystemHaveCorrectHash(std::string Hash);
// Description:
// Get the Hash for this sytem
std::String GetNodeLockHash();
protected:
// Description:
// Get some system information
String GetCPUInfo();
String GetNetworkCardInfo();
String GetGraphicsCardInfo();
String GetHardDriveInfo();
}
I would also like a test program. The program can be run in 2 ways:
TestProg GetHash
TestProg CompareHash A!@#%aeouoeu
The first one would print the Hash to stdout.
The second program would return true or false.
Please use C++
I also need to know how to compile the program.
If you are using Visual Studio, I would like the .vcproj file.