Best way to generate a machine fingerprint?

Joshua Evensen picture Joshua Evensen · Nov 9, 2011 · Viewed 10.5k times · Source

I need to generate a unique string that will differ from machine to machine -- a "device fingerprint".

What are...

  • possible approaches for custom implementations? (I've got a few ideas, but I figure you guys probably have BETTER ones)
  • existing solutions? (both commercial / non commercial are acceptable)

Answer

Jeff LaFay picture Jeff LaFay · Nov 9, 2011

Well what I do with my apps is usually create a special ID by taking the hash from the machine name found in Environment, concat it with a hash value of my app's name, and then apply a salt (probably not even necessary but it helps to be paranoid) to produce a "fingerprint" for an app/machine combo.

This works in my situation because there is only one copy of my app on a machine at a time.