Mike Meyer wrote: > You don't need to install special hardware to get that. There are a > number of pieces of hardware that you can find in a modern computer > that may have a unique serial number you can use as a > dongle. Possibilities include a CPU serial number, an HD serial > number, and the MAC address of any network cards: ethernet, wireless, > and apparently FireWire drivers have them. People have used all of > them in the past.
What's more, Tim Golden's wmi module (see http://tgolden.sc.sabren.com/python/wmi.html) makes getting at these numbers very easy: import wmi c = wmi.WMI () for thingy in c.Win32_NetworkAdapter(): print "Network Adaptor", thingy.MACAddress for thingy in c.Win32_Processor(): print "Processor", thingy.ProcessorId for thingy in c.Win32_BIOS(): print "BIOS", thingy.SerialNumber for thingy in c.Win32_BaseBoard(): print "BaseBoard", thingy.SerialNumber for thingy in c.Win32_SystemEnclosure(): print "System Enclosure", thingy.SerialNumber for thingy in c.Win32_DiskDrive(): print "Disk Drive", thingy.PNPDeviceID for thingy in c.Win32_PhysicalMedia(): print "Physical Media", thingy.SerialNumber Regards, Myles. -- http://mail.python.org/mailman/listinfo/python-list