Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How would go about creating custom registation keys?

Status
Not open for further replies.

AccessGuruCarl

Programmer
Jul 3, 2004
471
US
What I'm attempting to do is have the user enter their name, company name and the registration key when starting the program... The reg key is a unique key based on user name and company.

Here's where I need some direction...

When we store the user name and company name!

I'd like to generate the registration key 'based on the user name and company'.
The support team, would then email the keys as needed.

I've did a little a searching on google, and found a program that will generate random keys, but this is not what I'm ideally looking for. It generated 'several' duplicate keys on occasion during the trial period, and required the operator to cut-n-paste keys.

I figure it should be a simple function or algorithm for converting both the text values to numeric, doing a little math, then cutup the the final value as a key, but have no idea where to start.... I have no specfics format required for keys, but anything in the line of (see below) would be great:

Reg Key: XXX-XXX-XXX-XXX

Thanks in advance!

AccessGuruCarl
Programmers helping programmers
you can't find a better site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top