Alpha Video Training
Results 1 to 5 of 5

Thread: Activation Code?

  1. #1
    Member
    Real Name
    Walter
    Join Date
    Jun 2003
    Location
    South Africa
    Posts
    456

    Default Activation Code?

    I need to build an activation code into my app. But I need it to generate a unique code every time the activation code is asked for.
    Could someone please help me with some code samples. I have no idea on how to generate this. I assume it has something to do with a timestamp value.
    I want to use this espesially on first installation of the app.
    Thanks

  2. #2
    "Certified" Alphaholic Keith Hubert's Avatar
    Real Name
    Keith Hubert
    Join Date
    Jul 2000
    Location
    London, UK
    Posts
    6,930

    Default RE: Activation Code?

    Walter,

    You need to think this through very carefully.

    First you need to have a unique registration code generated. Then in a hidden field a mathamatical formular is applied to the registration code. In a third field the end user has to enter the verification code which must match the value in the hidden field. Since you know what the formular is you generate the verification code based on the registration code and send it to the end user. In the autoexec script you test the value of a logical field that has been set to true because the fields match and now the app will run.

    As you will have your own database of end users you will have on record all their registration and verification codes.

    There are many ways to generate a unique registration code, again you will have to think of what is unique.

    Hope this gives you food for thought.

    Keith Hubert
    London.

  3. #3
    "Certified" Alphaholic Marcel Kollenaar's Avatar
    Real Name
    Marcel
    Join Date
    Apr 2003
    Location
    Twente
    Posts
    1,514

    Default RE: Activation Code?

    Hi Walter,

    I found something in my Purebasic Helpfiles. It must be possible with Xbasic to compute MD5 fingerprints. Look at the following help text:

    Returns a 32 characters long MD5 (Message Digest 5) hash code. Here is a quick explanation took from the RFC 1321 on MD5:

    'The algorithm takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint" or "message digest" of the input. It is conjectured that it is computationally infeasible to produce two messages having the same message digest, or to produce any message having a given prespecified target message digest. The MD5 algorithm is intended for digital signature applications.'

    http://www.ietf.org/rfc/rfc1321.txt

    I hope it is not to difficult. PureBasic has this as a function. I haven't seen a equivalence for this in Xbasic. I saw a command cipher() decipher() but they where for internal Xbasic use only.

    Marcel

  4. #4
    Former Alpha Employee Edward Larrabee's Avatar
    Real Name
    Edward Larrabee
    Join Date
    Nov 2002
    Location
    New Hampshire
    Posts
    1,385

    Default RE: Activation Code?

    Take a look at http://support.alphasoftware.com/xbasic_reference/functions/_md5().htm

    Edward Larrabee

  5. #5
    "Certified" Alphaholic Marcel Kollenaar's Avatar
    Real Name
    Marcel
    Join Date
    Apr 2003
    Location
    Twente
    Posts
    1,514

    Default RE: Activation Code?

    Thanks Edward, I'll take a look at it.

    Marcel

Similar Threads

  1. Activation Key
    By Cheryl Truman in forum Alpha Five Version 5
    Replies: 2
    Last Post: 08-12-2005, 08:34 AM
  2. nestle alpha code into java code?
    By Willard in forum Web Application Server v6
    Replies: 6
    Last Post: 01-18-2005, 08:03 AM
  3. Did I Squander My 2nd Activation Code
    By Ohlen Cartmell in forum Alpha Five Version 5
    Replies: 4
    Last Post: 06-13-2003, 04:28 PM
  4. Activation code
    By David Agan in forum Alpha Five Version 5
    Replies: 2
    Last Post: 10-02-2002, 02:11 PM
  5. Activation Code Failed & QBF Helper inconsiste
    By David Agan in forum Alpha Five Version 5
    Replies: 4
    Last Post: 08-23-2002, 03:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •