473,414 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Registration of software code

Is there some relatively simple way that I could create some sort of number
from a series of letters and numbers in a field on a form and then when a
person purchases the software, supply a matching number to their unique
number that could be put into a field in a table that would then enable the
software.

I think the idea would probably work, but how do I generate the number. The
number would come from something like A03078989-BT39 which is a unique
serial number for one copy of the software. Just using this number would be
easily guessed. How do I process the serial number to produce a unique
number?

Any ideas.

dixie
Nov 12 '05 #1
4 1973
On Tue, 23 Sep 2003 09:13:28 +1000, "dixie" <di****@dogmail.com>
wrote:

Here is one option:
Turn the string into a number (e.g. by stripping all non-numerics).
Call this number A. Then calculate the difference between that number
and the number 123456789 (or any other "magic number") called number
B. The user would have to enter the resulting number C (=A-B) in order
to enable the software.
Variants:
* A is created not just by stripping the non-numerics, but these
non-numerics actually modify the numerics. E.g. A adds 1, B adds 2,
etc.
* B is modified by the non-numerics in a similar way.
* C is modified by the current date (e.g. subtract the number of days
in the current year) so the code can be used only once.

The sky is the limit in how complicated you can make these algorithms.

Happy programming.

-Tom.
Is there some relatively simple way that I could create some sort of number
from a series of letters and numbers in a field on a form and then when a
person purchases the software, supply a matching number to their unique
number that could be put into a field in a table that would then enable the
software.

I think the idea would probably work, but how do I generate the number. The
number would come from something like A03078989-BT39 which is a unique
serial number for one copy of the software. Just using this number would be
easily guessed. How do I process the serial number to produce a unique
number?

Any ideas.

dixie


Nov 12 '05 #2
Tom, could you give me an example of using VBA code for stripping non
numerics out of something like A1233WB25?

dixie

"Tom van Stiphout" <to*****@no.spam.cox.net> wrote in message
news:8c********************************@4ax.com...
On Tue, 23 Sep 2003 09:13:28 +1000, "dixie" <di****@dogmail.com>
wrote:

Here is one option:
Turn the string into a number (e.g. by stripping all non-numerics).
Call this number A. Then calculate the difference between that number
and the number 123456789 (or any other "magic number") called number
B. The user would have to enter the resulting number C (=A-B) in order
to enable the software.
Variants:
* A is created not just by stripping the non-numerics, but these
non-numerics actually modify the numerics. E.g. A adds 1, B adds 2,
etc.
* B is modified by the non-numerics in a similar way.
* C is modified by the current date (e.g. subtract the number of days
in the current year) so the code can be used only once.

The sky is the limit in how complicated you can make these algorithms.

Happy programming.

-Tom.
Is there some relatively simple way that I could create some sort of numberfrom a series of letters and numbers in a field on a form and then when a
person purchases the software, supply a matching number to their unique
number that could be put into a field in a table that would then enable thesoftware.

I think the idea would probably work, but how do I generate the number. Thenumber would come from something like A03078989-BT39 which is a unique
serial number for one copy of the software. Just using this number would beeasily guessed. How do I process the serial number to produce a unique
number?

Any ideas.

dixie

Nov 12 '05 #3
cinch...

Option Compare Database
Option Explicit

Public Function JustAlpha(strAlphaNum As String) As String
Dim strTemp As String
Dim intCounter As Integer
Dim strChar As String

For intCounter = 1 To Len(strAlphaNum)
strChar = Mid$(strAlphaNum, intCounter, 1)
If Not IsNumeric(strChar) Then
strTemp = strTemp & strChar
End If
Next intCounter
JustAlpha = strTemp
End Function

Umm... whaddaya return if it's a string of just numbers?
Nov 12 '05 #4
On 24 Sep 2003 19:46:11 -0700, pi********@hotmail.com (Pieter Linden)
wrote:

Nice function - I would call it JustNumeric.
At the bottom of the function I might write:
if Len(strTemp)=0 then strTemp="0"

-Tom.
cinch...

Option Compare Database
Option Explicit

Public Function JustAlpha(strAlphaNum As String) As String
Dim strTemp As String
Dim intCounter As Integer
Dim strChar As String

For intCounter = 1 To Len(strAlphaNum)
strChar = Mid$(strAlphaNum, intCounter, 1)
If Not IsNumeric(strChar) Then
strTemp = strTemp & strChar
End If
Next intCounter
JustAlpha = strTemp
End Function

Umm... whaddaya return if it's a string of just numbers?


Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jason | last post by:
Hi all, Merry Christmas! I would like to have trial period for my .NET application and let user to enter S/N for registration. I would like to ask how can we store the registration status of...
0
by: Marcel - IDUG Europe 2005 | last post by:
Hi DB2 users, ========================================================================================= We just created a blog dedicated to our upcoming IDUG 2005 Europe Conference (24-28...
2
by: oliderid | last post by:
Hi, I'm new to C# and the windows world (I used to work on Java and *nix OSes). I'm using visual studio .net 2003. I'm working on a add-in application to be used under a software. I was able...
3
by: Martin | last post by:
Dear Group Sory for posting this here. Hope it's not too off-topic but thought that someone minght know about. Can you give tips about intellectual property / copyright registration for...
7
by: dm4714 | last post by:
Hi -- does anyone know of any good VB.NET software registration, protection and activation components. I guess I'm looking for something similar to http://www.ionworx.com/solutions.html
10
by: Math | last post by:
Hello, I wonder if I can ask this particular question here... I'm writing this piece of Python Software and I'm almost done...:-) But now I want the end-user to register this software with a...
0
by: Brian Quinlan | last post by:
What's New? =========== The deadline for early-bird registration for the Vancouver Python Workshop is this Friday, June 30th. Early-bird registration is significantly discounted over normal...
26
by: T | last post by:
We all know that there are many softwares that require some license key or registration key to enable them. How does one implement something like this in python?
5
by: JT | last post by:
Hi, I would like opinions on a shareware issue. If shareware uses an online database to hold registration codes, which get copied locally and therefore only needs to check online if the...
9
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.