How to Make a KeyGen

72,001

15

5

Introduction: How to Make a KeyGen

This Is A Simple How to make a Keygen in VB.NET and NO Im not using real Keys. But What You Would Do Is in the coding you would have to replace the X's with The key itself.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Make a New Proect

Start Visual Basic 2010.
Make a New Windows Form Applications.

Step 2: Make 4 Labels

Make 4 Labels. One that says "64bit Key" and another for "32bit Key."
Make 2 other Labels that say "Key".

Step 3: Make 2 Text Boxes and 2 Buttons

Make 2 Text Boxes and 2 Buttons.
Name The Buttons Generate and Keep The Text Boxes Blank.

Step 4: Coding the Buttons

For the Generate Buttons (Buttons 1/2) Put this code in:
TextBox1.Text = Int(Rnd() * 4)
Select Case TextBox1.Text
Case 0
TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
Case 1
TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
Case 2
TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
Case 3
TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
Case 4
TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
Case 5
TextBox1.Text = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
End Select

Step 5: Run It and If It Works Your Finished

Run and See if it works Without Error
If So Build and Publish It

Be the First to Share

    Recommendations

    • LED Strip Speed Challenge

      LED Strip Speed Challenge
    • Sculpting Challenge

      Sculpting Challenge
    • Clocks Contest

      Clocks Contest

    5 Discussions

    0
    CuteEwok'sO
    CuteEwok'sO

    5 years ago on Introduction

    I want to make a Keygen Music Keygen, where you hit a button to hear a chiptune.

    0
    SeargentA
    SeargentA

    5 years ago on Introduction

    Download my own KeyGen for all games:
    http://www.mediafire.com/download/48aobvzh97ob5hh/KeyGen.zip

    0
    zack247
    zack247

    9 years ago on Introduction

    i would see this as more of a potential use as something for activating a product, sort of like you get a code from the producer, put in this and it gives you the code to get the code for activation, unfortunately as Ether said you would have to do a lot more work to make it a actual "keygen".

    0
    error32
    error32

    9 years ago on Introduction

    I think you mean that you made a die simulation program that will display some text rather than a number.

    0
    Ether Kalmar
    Ether Kalmar

    9 years ago on Introduction

    Sorry, but this isn't a keygen, it's just displaying some codes you will obtain from other actual keygens released by the crack groups.

    To improve it you need to figure out and include the mathemetic formulas used to generate and verify actual unique keys to call it a keygen.

    Obviously, that's rather hard to do without reverse engineering the copy protection systems for the specific application.