Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please help for this.
i want generate serial key using Machine id (mac id) for licensing purpose .
Posted
Updated 30-Jan-12 14:43pm
v2
Comments
Sergey Alexandrovich Kryukov 30-Jan-12 13:21pm    
Not a question. Generate it if you want, you got my approval. :-)
What's the question? Your problem?

And please, use full capitalization, punctuation and correct spelling; this is a matter of elementary politeness.
--SA

You cannot use the MAC address of a network adapter to guarantee a unique CD ID as MAC addresses are not unique.
 
Share this answer
 
Comments
Clark Kent123 31-Jan-12 8:22am    
MAC addresses are not unique? I always thought they were. Is it at least virtually unique? What are the odds that 2 network adapters having the same address (rhetorical just thinking out loud)?

Or do you mean that a person can change their MAC address thus violating it's uniqueness if it was unique to begin with?
Dave Kreskowiak 31-Jan-12 9:49am    
MAC Addr's are most assuredly NOT unique. I know this because, many moons ago, I had two 3COM 3C509's on the same segment that were having all kinds of network problems. Until I just happened to glace at the MAC Addr bar code at the top of the cards. Yep, identical.

If you think about it, out of the 6 bytes of a MAC-48 address, the first 3 are used as a manufacturer code. The remaining 3 bytes are a sequence number in the production, giving you 16.5 million possible addresses. What are the chances a manufacturer is going to make more than 16.5 million Ethernet adapters??

You can have two adapters with the same MAC address on the same network, but NOT in the same segment. The MAC (or physical) address is what is used to communicate between two nodes on the same segment.

On top of that, yes, you can change the MAC address of certain adapters, thereby opening yourself up to spoofing and physical address collisions.

Clark Kent123 31-Jan-12 10:16am    
I see your point. I didn't realize all that. You learn something new everyday. Thanks for the clarification! :)
First I would like to say that I mean no disrespect about what I am about to say. But code project has a great search function in the upper right hand corner. I just typed in "licensing" and I got these great articles.

Cryptography 101 for the .NET Framework[^]

License Key Generation[^]

May these can help you? Take a look and let me know.

One last thing I would like to mention it's hard helping someone if they give you little information. Wish you all the best.

Keep on coding! :)
 
Share this answer
 
Comments
harishtaware 31-Jan-12 11:11am    
:-)

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