How to create a Serialnumber for App programmatically?

G

Guest

Hi, we are developing an winforms application for task management. We want
generate a serial number wich includes Username, Company Name and another
Information as String. How can i create from these values a serial number?

thanks
yavuz
 
R

Ray Cassick

There are tons of ways to do that. Way too many to cover here in entirety.
here is what I had done before:

If your DB structure has a unique id for each entity (username, company
name, etc..) then you can simply concatenate those values together to crate
the serial number.

You can try taking all your strings, concatenating them together and
creating a hash value from them.

Allot of it depends on weather or not you need to be able to decompose the
number back into it's component values or not really. If you use a hash type
method then it is pretty much one way.
 
B

Bob Powell [MVP]

Have you looked at encryption and hash strings?

It's not a number but it's a unique and reasonably uncrackable string if you
use more than about 15 characters in it.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Y

Yavuz Bogazci

Hi,

no i havent! I need the serial in two ways. That means, i need to create the
serial from the given informations and in my app i had to "decrypt" it to
show the information and to use them.

thanks
yavuz
 
C

Crouchie1998

So, you will need to use something like the Hard Drive Serial number to
create a number that a user will have to e-mail you.

There are a few available as freeware or shareware, but some cost a lot of
money.

The best method out is to look into the Windows Activation. It works on
hardware.Yeah, its only in Base 24 & every 6 bit is a checksum, but if
Microsoft can implement it, you can too. This info is available on the MSDN
online documentation

-------------------------

Whatever method you use will be easy to reverse engineer. All you need is a
debugger to set the breakpoints, enter a wrong serial & see where it jumps.
Use an ASM program to change to 90 (NOP (No Operation)) therefore the jump
if incorrect serial is never made...

Crouchie1998
BA (HONS) MCP MCSE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top