Create a unique password from computer's ID

maxik's icon

I found a patch that generates passwords in the forum but not something that takes the computer's ID and then generates a unique password for this computer.
Any help please?

ygreq's icon

Can you tell us where you found the patch that generates a unique password? Post the patch from there, maybe? We might get something starting from that patch.

EMV's icon

I bet you can read the mac address with an mxj net object, and then do something fancy with it, like md5 hashing (for example with a javascript snippet like this one: http://aktuell.de.selfhtml.org/artikel/javascript/md5/).

maxik's icon

Thanks for the replies...

"Can you tell us where you found the patch that generates a unique password? Post the patch from there, maybe? We might get something starting from that patch. "

There are some patches for generate passwords.

seejayjames's icon

Possibly you could use a free executable to get it, there's one here for PC:

Includes source code, so someone adept at making externals could utilize that. Otherwise, you could include their .exe along with your patch to have the user get the ID manually.

Certainly there's something similar on Mac. The mxj sounds like a good solution too, though the user needs to have Java correctly installed... would be best as an external, I think.

maxik's icon

Unfortunately I'm not a Java programmer or other...
I saw an authorization window in MacPOD http://thirdmonk.com/MacPOD.html
made with max but I dont know how was made.
Should be useful cycling74 to have a ready made example for those who make
standalone applications and want to sell or protect their application.

Chris Rolfe's icon

I'm the author of MacPOD. I've posted an external object, MachineID, under the Tools section, that returns the Mac serial number. Includes source. see: http://support.apple.com/kb/HT1529

Tools: MachineID

Alternatively, just run the following command with the excellent shell object:

system_profiler SPHardwareDataType | awk '/Serial Number/ {print $NF}'

maxik's icon

Thank you very much Chris and congrats for your app!