Need Serial number creator VB6 (for my software:)

Posted on 2004-11-09
Last Modified: 2007-11-27

Looking for ways to create a secure serial number based upon company name and program version.  I just need a simple way to generate a number/letters combo based upon those two items, but it also has to be fairly secure.  Program will decrypt/unhash upon load.  At this point I don't want to use hdd serial or anything like that just simple program to create and in my prog will know how to decrypt.
Question by:bluedragon99
    LVL 5

    Accepted Solution

    Just ask the user to send you a user name, then you apply a secret hash function (One-Way Function) over it and then you return the hash value of the name to the client.

    At the start of the program it does the hash function again to the name supplied and checks if two hash values are the same.

    Askme more if you need.

    P.D: Here you can find info about hash functions:

    LVL 17

    Assisted Solution

    by:Wim ten Brink
    Just create a GUID. GUID's are statistically always unique. Then calculate a hash over the GUID (converted to a string), the company name and the version number. Don't decrypt it, though. (Unhashing cannot be done since a hash is a one-way street.) The GUID can be stored in binary form in your application. And to check if the user hasn't modified things, just calculate the hash again over the GUID, company name and version and compare it with the hash value that you've stored somewhere. If all is okay, they should be identical. (And the GUID just adds a bit of salt to your application.)

    If possible then avoid decryption in your application. Just use the one-wat encryption that any hash will offer. Then just compare the hash value with the original hash value. This should be pretty secure, although no system will be 100% secure.
    LVL 11

    Assisted Solution


    Try to take a look at

    This is a free component where the users can generate a key from your software which they can use to protect you application

    It will also check for dates and allow you to create a "testversion" for several days. The software is open source + free so you can check the code or "just use it"

    Hope this helps :)
    LVL 4

    Assisted Solution


    That's what I use on my app's and it's just great!


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    This is an explanation of a simple data model to help parse a JSON feed
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now