Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to create a desktop application which run only in one system .it will check the mac id of the system if the mac id is equal it should work otherwise it should not.i have collection of hundreds of mac id . this idea is similar to send one letter content having several TO address
Posted
Updated 16-Jul-11 18:03pm
v2

1 solution

That's quite easy to achieve by using MD5 hashing. Hash all your MAC IDs and distribute them along with your application applying some salt also. To authenticate use the MAC ID of the system, hash it and see if it's contained in the list of allowed IDs. The salt is the critical piece here. Since it's needed for the authentication it will be embedded in your application and thusly exposed to hacking.

A more secure approach is to use asymetric cryptography with a private and a public key. Use the private key to encrypt the salt mentioned in above scenario. The public key will be used by your application to decrypt and use the salt as before mentioned.

Best Regards,

—MRB
 
Share this answer
 
Comments
Espen Harlinn 17-Jul-11 18:35pm    
Very nice, my 5 :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900