none
Does anyone know how to make a REAL key generator? - Or could someone help me fix my program code to building a working keygen?

    Question

  • I've been trying to create a working keygen for three months and I havn't figured it out.  I first inserted two buttons and named one "Generate" and the other "Exit" and then I put in a textbox.  After that I put in the code and debugged it every time I pressed the Generate button a 0 just popped up in the textbox.  Someone please help me; my code is below.
    Public Class Form1
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim gen As Long
            gen = (Rnd() = 99999 - 99999 - 99999 - 99999 - 99999)
            TextBox1.Text = gen
        End Sub
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            End
        End Sub
    End Class
     
    Wednesday, June 24, 2009 8:11 PM

Answers

  • Try something like this:

            Dim myRandom As New Random 'random class
            Dim KeyParts As New List(Of Integer) 'list of integers
            Dim myKey As String = String.Empty 'final key
            'loop 5 times to make 5 key sections, requesing a random number betwee
            '10000 and 99999 so it will always be a full 5 digits per section
            Do Until KeyParts.Count = 5
                KeyParts.Add(myRandom.Next(10000, 100000))
            Loop
            'format the parts of the key into a string with dashes
            myKey = String.Format("{0}-{1}-{2}-{3}-{4}", _
                                  KeyParts(0), _
                                  KeyParts(1), _
                                  KeyParts(2), _
                                  KeyParts(3), _
                                  KeyParts(4))
            'display
            MessageBox.Show(myKey)
    of course you are just making numeric keys here. You would go about this a bit differently if making alpha-numeric keys.
    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com
    • Marked as answer by Xingwei Hu Wednesday, July 01, 2009 2:35 AM
    Wednesday, June 24, 2009 9:58 PM
  • Try this code below, may be you like it. i used it my program.
     Public Function generateSerialNumber_25DIGITS(ByVal NumberOfSerial As Integer) As ArrayList
            Dim total As Integer = 0
            Dim serialList As New ArrayList
            Dim rn As New Random
            Dim gn, gn2, gn3, gn4, gn5 As Integer
            While total <= NumberOfSerial - 1
                gn = rn.Next(10000, 99999)
                gn2 = rn.Next(10000, 99999)
                gn3 = rn.Next(10000, 99999)
                gn4 = rn.Next(10000, 99999)
                gn5 = rn.Next(10000, 99999)
                If gn Mod 4 = 1 And gn2 Mod 4 = 0 And gn3 Mod 4 = 1 And gn4 Mod 4 = 0 And gn5 Mod 4 = 1 Then
                    serialList.Add(gn & "-" & gn2 & "-" & gn3 & "-" & gn4 & "-" & gn5)
                    total = total + 1
                End If
            End While
            Return serialList
        End Function
    
    ' This will generate 25 digits number like (34424-12345-99999-00000-11111). You will call the method like below
    
    Dim myserialList as new ArrayList
    myserialList=generateSerialNumber_25DIGITS(1000)' this will generate 1000 serial numbers.
    
    
    
    
    kaymaf

    I hope this helps, if that is what you want, just mark it as answer so that we can move on
    • Marked as answer by Xingwei Hu Wednesday, July 01, 2009 2:40 AM
    Thursday, June 25, 2009 12:07 AM
  • Here you go:

    Needs a form with a button and a multiline TextBox

    Option Strict On
    Public Class Form1
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim strMain As String = ""
            Dim strKey As String = ""
            Dim a, b As Integer
            For a = 1 To 20
                strMain &= UCase(Guid.NewGuid.ToString)
            Next
            strMain = Replace(strMain, "-", "")
            Dim MyRnd As New Random
            For b = 1 To 25
                strKey = ""
                For a = 1 To 25
                    strKey &= Mid(strMain, MyRnd.Next(1, strMain.Length), 1)
                    If a Mod 5 = 0 And a <> 25 Then strKey &= "-"
                Next
                TextBox1.AppendText(strKey & vbCrLf)
            Next
        End Sub
    End Class
    
    

    Saturday, November 12, 2011 2:49 AM

All replies

  • Try something like this:

            Dim myRandom As New Random 'random class
            Dim KeyParts As New List(Of Integer) 'list of integers
            Dim myKey As String = String.Empty 'final key
            'loop 5 times to make 5 key sections, requesing a random number betwee
            '10000 and 99999 so it will always be a full 5 digits per section
            Do Until KeyParts.Count = 5
                KeyParts.Add(myRandom.Next(10000, 100000))
            Loop
            'format the parts of the key into a string with dashes
            myKey = String.Format("{0}-{1}-{2}-{3}-{4}", _
                                  KeyParts(0), _
                                  KeyParts(1), _
                                  KeyParts(2), _
                                  KeyParts(3), _
                                  KeyParts(4))
            'display
            MessageBox.Show(myKey)
    of course you are just making numeric keys here. You would go about this a bit differently if making alpha-numeric keys.
    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com
    • Marked as answer by Xingwei Hu Wednesday, July 01, 2009 2:35 AM
    Wednesday, June 24, 2009 9:58 PM
  • Try this code below, may be you like it. i used it my program.
     Public Function generateSerialNumber_25DIGITS(ByVal NumberOfSerial As Integer) As ArrayList
            Dim total As Integer = 0
            Dim serialList As New ArrayList
            Dim rn As New Random
            Dim gn, gn2, gn3, gn4, gn5 As Integer
            While total <= NumberOfSerial - 1
                gn = rn.Next(10000, 99999)
                gn2 = rn.Next(10000, 99999)
                gn3 = rn.Next(10000, 99999)
                gn4 = rn.Next(10000, 99999)
                gn5 = rn.Next(10000, 99999)
                If gn Mod 4 = 1 And gn2 Mod 4 = 0 And gn3 Mod 4 = 1 And gn4 Mod 4 = 0 And gn5 Mod 4 = 1 Then
                    serialList.Add(gn & "-" & gn2 & "-" & gn3 & "-" & gn4 & "-" & gn5)
                    total = total + 1
                End If
            End While
            Return serialList
        End Function
    
    ' This will generate 25 digits number like (34424-12345-99999-00000-11111). You will call the method like below
    
    Dim myserialList as new ArrayList
    myserialList=generateSerialNumber_25DIGITS(1000)' this will generate 1000 serial numbers.
    
    
    
    
    kaymaf

    I hope this helps, if that is what you want, just mark it as answer so that we can move on
    • Marked as answer by Xingwei Hu Wednesday, July 01, 2009 2:40 AM
    Thursday, June 25, 2009 12:07 AM
  • I've been trying to create a working keygen for three months and I havn't figured it out.  I first inserted two buttons and named one "Generate" and the other "Exit" and then I put in a textbox.  After that I put in the code and debugged it every time I pressed the Generate button a 0 just popped up in the textbox.  Someone please help me; my code is below.

    Hi ThePr0grammer,

    I would have thought that any decent, law abiding programmer would NOT assist you in creating a KEYGEN.

    Especially here on these MICROSOFT forums. 

    Especially if you are trying to create RANDOM product serial
     keys for a commercially available program or application.

    I am very suprised you even dared to ask such a question in the MICROSOFT forums ( of ALL places ).

    Programs are not written with code protection in the hope that someone will CRACK
     ( or reverse engineer ) the process by creating a KEYGEN type program to generate random product keys.

    Such procedures are there to keep PROFESSIONAL program developers employed
    by means of generating income by selling genuine software.

    Not for someone to come along and try and put a company out of business by creating a KEYGEN!!

    So please take your "hacking" question away with you to somewhere else on the internet.

    Finally, most if not ALL keygen programs found on the internet contain a VIRUS!!!!

    Which is a very good reason NOT to use pirated software as you could be installing a KEYLOGGER
    that could give away your LOGIN details and even your BANK account or / and CREDIT / DEBIT card details
    to some other person connected to the internet.

    So now I have added this post, think twice about a hacking question like;

    Does anyone know how to make a REAL key generator? - Or could someone help me fix my program code to building a working keygen?

    Final note: How would you like it if you or your parents lost their job(s)?
    In other words, REAL jobs can be affected by software piracy.

    PIRACY leads to more expensive software due to the activities of hackers - software pirates.

    1) If you want to use FREE software then use LINUX and programs developed for that operating system.

    2) If NOT then please continue to support MICROSOFT and other companies and PAY for the software you need.
    Note: Other operating systems other than WINDOWS and LINUX are available.

    3) If you continue to use PIRATED software then that is your choice only, I have mentioned the risks.

    The choice is up to you.

    Unfortunately many people can not afford the software they think they need, which is a situation many of us are faced with on a day to day basis.


    Regards,

    John
    Thursday, June 25, 2009 2:07 AM
  • @john.
    i had a post on here, pretty much saying that a respectful developer would not reply to this thread with a answer.
    i ended up deleting it due to another post, not mentioning poster, which i did not want to offend, since that poster has been grateful and tries to keep the msdn forum a clean enviroment.  maybe i was wrong, and maybe we all learn from our mistakes. sure hope we learn.

    i'm glad someone else thinks as well, very glad john.
    no hard feelings kaymaf, but since the reply i posted hours after the moderator did, and i deleted for my respect to you, i was hoping that my message would get thru to the moderators and would  not do the same, to keep microsoft beautiful..

    if anything else than other, moderators, delete the entire post, and keep some of the content as a sticky note to let others know that MSDN is for respectful developers and nothing else.

    if anyone disagrees, do not ever reply to any of my questions.

    much love john,
    trujade.

    (hope you guys see what i just mentioned, or next time, i will make the font larger!)

    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 2:56 AM
  • Hi trujade,

    Please refrain from using large completely bold text all in one post in these forums.

    It looks like you are shouting.

    Plus it hurts my eyes to look at it!! LOL!!  :-(


    Regards,

    John
    Thursday, June 25, 2009 3:15 AM
  • love, john..
    hope this helps.. lol
    trujade

    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 3:18 AM
  • love, john..
    hope this helps.. lol
    trujade

    help out microsoft for helping you.. test run 7

    Hi trujade,

    It would if you made your 1st post the same size text as your 2nd one.

    I might change the "Red hatted Smurf" soon too!!  :-D


    Regards,

    John
    Thursday, June 25, 2009 3:21 AM
  • So if someone asked question about keygen,doesnt mean he or she want to crack software.  To me, it doesnt make sense to assume that OP is asking illegal question. I saw many threads in this forum in which people asked how to protect software. Every company have ways of protecting software and serial numbers are not just a random numbers but they use algorithm.  What this question have to do with someone lost job.
    kaymaf
    I hope this helps, if that is what you want, just mark it as answer so that we can move on
    Thursday, June 25, 2009 3:29 AM
  • kaymaf, you always yell at me when i do stuff i should not (and you yell at everyone else for the same thing.. ;o)..

    where do you think i got the idea for a respectful forum? me? nope.. from your past replies. one of them, for a unknown poster, you mentioning not to make bad programs..

    i still respect you kaymaf, just please continue to keep this forum respectful..

    trujade.

    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 3:33 AM
  • So if someone asked question about keygen, doesnt mean he or she want to crack software.  To me, it doesnt make sense to assume that OP is asking illegal question. I saw many threads in this forum in which people asked how to protect software. Every company have ways of protecting software and serial numbers are not just a random numbers but they use algorithm.  What this question have to do with someone lost job.
    kaymaf
    I hope this helps, if that is what you want, just mark it as answer so that we can move on

    Hi kaymaf,

    Your first sentence is TRUE.

    Okay, I will admit that for me to assume the OP is asking how to create a KEYGEN to crack software
    may be wrong or out of order, in which case I offer my apologies to The Pr0grammer, however
    KEYGENs are often created to "crack" software.

    Pirated software can result in job loses.

    Two very good series of home computers ( and others ) no longer have any ( as far as I know )
    commercial companies developing software for them as a direct result of all the software piracy going on at the time.

    So 1000's of people are probably now working elsewhere as a direct result of software piracy.

    They will have probably lost their original jobs as a result of software piracy.

    PC's however only continue to exist today as they are used a lot in the business environment with
    MICROSOFT OFFICE and similar software.

    Without WINDOWS and OFFICE, Microsoft would not be as large a company, worldwide, as it is today.
    For this and other reasons, lots of people hate Microsoft or have a love-hate feeling about them.
    Many people, on the other hand, like Microsoft products a lot.
      

    Regards,

    John
    Thursday, June 25, 2009 3:54 AM
  • Many people, on the other hand, like Microsoft products a lot.
      

    Regards,

    John
    i'm one of those people and proud of it!

    but honestly, why would you need a keygen app?  just to watch random numbers and letters?
    or, make bad programs.

    no need for my name to be typed, since this thread is c.r.a.*.

    forgot that i had to add a p 'ed and off about such a thread being answered with a solution, especially by a moderator.

    hope this helps.
    .never seen this moderator or his/her replies before, so he/she must be new to this msdn..




    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 4:11 AM
  • that is the best proposed answer ever!

    i'm proud of you cor.. lol..
    nameless
    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 4:14 AM
  • that is the best proposed answer ever!

    i'm proud of you cor.. lol..
    nameless
    help out microsoft for helping you.. test run 7

    Hi to trujade and Cor Ligthert MVP,

    Thank you both for your support. :-)   :-D   ;-)

    To trujade. If c.r.a. is rude or crude then please don't type it in these forums in full, whatever it stands for.


    Regards,

    John
    Thursday, June 25, 2009 4:20 AM
  • i did mention that i forgot the p'ed and off about this thread..

    learned my lesson when i tried to reply to a similar thread and all i got was ____, ____, ____'s for the whole reply ... lol.

    nameless
    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 4:26 AM
  • for all your bad programming questions that need answers, view link below....

    ( link removed )

    nameless
    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 5:22 AM
  • for all your bad programming questions that need answers, view link below....

    respect yourself

    nameless
    help out microsoft for helping you.. test run 7

    Hi trujade,

    I am guessing you agree with my first post in this thread then?

    Did you feel you had to create such a website page??>>

    http://trujade.com/my%20medals/respect%20yourself%20as%20a%20developer.html


    Regards,

    John
    Thursday, June 25, 2009 6:43 AM
  • not worth the web space, so i deleted it.


    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 6:45 AM
  • @John, The reason why i posted the sample code was that, i read the OP question and i know that OP have no clue how to generate random number. I wont do that if OP asked question about crack or posted code from Assembly language. You can see that this thread was moved to C++ forum by moderator because C++ and Assembly language are the tools cracker use to break software security. The chance that the code i posted will work on any software serial number will be 1 in millions. Im sure OP wont come here if his or her mission is to crack software because you can get different video tutorials on how to make KEYGEN or crack software from YOUTUBE.
      Im sorry, if my response was directly attacked you but my aim was to differentiate which question is go off the computer  ethics line.


    kaymaf
    I hope this helps, if that is what you want, just mark it as answer so that we can move on
    Thursday, June 25, 2009 1:58 PM
  • I think you guys have taken this a bit off topic.

    First of all, you should never assume, with such limited information, that someone is looking to make malicious software.

    Just looking at the sample code the OP provided would lead any of you to believe this guy doesn't know how to make a keygen to actually generate valid keys to some piece of commercial software. He never stated that was the goal, and if he had the ability and knowledge to do it, he wouldn't be stuck on the specific question that he asked.

    Obviously companies who make software they uses a product key need some way to generate them when they sell their product don't they?

    Please stop the personal attacks, and please keep these threads on topic. If you feel a thread has malicious content or malicious intent, please request a moderator to review it. The fact that I was the first one to post in this thread should have been an indication to you that this thread is fine, as it stands now, until there is reason to consider it malicious.
    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com
    • Proposed as answer by mkruluts Friday, November 11, 2011 4:16 PM
    Thursday, June 25, 2009 2:08 PM
  • Just looking at the sample code the OP provided would lead any of you to believe this guy doesn't know how to make a keygen to actually generate valid keys to some piece of commercial software.

    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com
    it all starts somewhere, and i do not believe that Microsoft's MSDN should be the place.

    trujade.

    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 3:08 PM
  • This thread was originally posted in the wrong forum, moved by a forum moderator (NoBugz) over here. Then another forum moderator posted in the thread (myself). This should be enough of an indication to you that as the thread stands now it is 100% acceptible, the OP did not ask about doing anything malicious or illegal so please leave it at that. If you can not provide anything of value except to accuse people of wrong doing with 0 proof, then please just don't post in the thread at all.


    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com
    Thursday, June 25, 2009 3:14 PM
  • The fact that I was the first one to post in this thread should have been an indication to you that this thread is fine, as it stands now, until there is reason to consider it malicious.
    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com

    no hard feelings, but we, the members, not moderators, are the first to view the questions and have a say so at the replies.  should we not have a choice to state our opinions?

    just because it says moderator, does not mean it says' correct .. i have seen plenty threads, marked as answer by a moderator, with a wrong answer.

    not my problem.  i only have a problem with threads such as this.

    trujade.

    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 3:15 PM
  • that's because ( NoBugz ) respects his forum, and probably knows that this forums' members give people with such questions a hard time.

    if it is acceptable, what can i do about it to change it?  nada..

    and does the word keygen not mean anything, or is it used for such apps used in software piracy?
    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 3:18 PM
  • just wanted to add that these are just my opinions, nothing else.  no harm to be done, just understanding.
     thanx.
    trujade.

    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 3:22 PM
  • keygen is just short for key generator, and it can have both valid and malicious intent.

    The guy didn't say "I need to make a working keygen to make keys for Windows Vista" did he?

    When Microsoft prints product keys for copies of Windows and Office that they sell, what exactly do you think they use to "generate keys" for these products? A "keygen" perhaps?

    I have written commercial software that required product activation keys to be used, and what did I write to generate those keys? Yup, you guessed it, a keygen.


    So please stop accusing people of wrong doing because they ask a simple question that YOU perceive as malicious.
    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com
    Thursday, June 25, 2009 3:24 PM
  • i can see this is going nowhere, so i'll do us both a favor, and stop replying.

    for anything that you might have to add, read my above reply, with  '...just understanding.'
    trujade.
    help out microsoft for helping you.. test run 7
    Thursday, June 25, 2009 3:40 PM
  • kaymaf, you always yell at me when i do stuff i should not (and you yell at everyone else for the same thing.. ;o)..

    where do you think i got the idea for a respectful forum? me? nope.. from your past replies. one of them, for a unknown poster, you mentioning not to make bad programs..

    i still respect you kaymaf, just please continue to keep this forum respectful..

    trujade.

    help out microsoft for helping you.. test run 7

         Hi Trujade, put yourself in OP position, one day, you will need to protect your program or software that you developed from free user, how will you protect it ?  Serial or activation code? , no matter which one, the numbers or alphanumerics have to be generated. Im sure you come back here and ask for help.

    kaymaf
    I hope this helps, if that is what you want, just mark it as answer so that we can move on
    Thursday, June 25, 2009 3:42 PM
  • i sure will, just not help to make bad programs .
    trujade.

    help out microsoft for helping you.. test run 7
    • Edited by •.trujade.• Thursday, June 25, 2009 9:50 PM forgot to make the font larger ;o)
    Thursday, June 25, 2009 3:47 PM
  • @John, The reason why i posted the sample code was that, i read the OP question and i know that OP have no clue how to generate random number. I wont do that if OP asked question about crack or posted code from Assembly language. You can see that this thread was moved to C++ forum by moderator because C++ and Assembly language are the tools cracker use to break software security. The chance that the code i posted will work on any software serial number will be 1 in millions. Im sure OP wont come here if his or her mission is to crack software because you can get different video tutorials on how to make KEYGEN or crack software from YOUTUBE.
      Im sorry, if my response was directly attacked you but my aim was to differentiate which question is go off the computer  ethics line.


    kaymaf
    I hope this helps, if that is what you want, just mark it as answer so that we can move on

    Hi kaymaf,

    No need for apologies.

    I hardly ever feel offended or upset by these forums.

    I am sorry too if you feel any of my posts in this thread are inappropriate to this thread.


    To Matt Kleinwaks,

    Please accept my apologies if you should feel any of my posts in this thread are inappropriate to this thread.

    I felt that the points I have raised were worth raising however.

    At no point was I intentionally trying to attack or "flame" either yourself or kaymaf here. 


    Regards,

    John
    Friday, June 26, 2009 4:11 AM
  • John, there is no ill will here, and I will even conceed that the OP MAY be looking to make a malicious keygen.

    My only point to make in this thread is I see everyday people asking how to do things like make keygen, capture keystrokes, etc... and all these things always have good or bad purposes.

    In theory, someone asking how to delete a file off the hard drive could be out to do something malicious, but will that be our first thought?


    I just wanted to make it clear that we should give people the benefit of the doubt, and as soon as anything is obviously against the rules of this forum, then it will be dealt with properly.
    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com
    Friday, June 26, 2009 3:40 PM
  • your entire reply kleinma, very understandable.
    i only stood for what i believe, and that is a clean forum, especially this one. it is microsoft after all..
    i do apologize for my responses, as i wish you understand what i stood for.

    @kaymaf..
     i never yelled at you for anything, but i guess me yelling for once, is something that made a meaning.. ;o)  learned from the best.
    i'm glad your forum education has affected me to keep such questions to not be answered.

    now, i understand (somewhat) the reason why this post was replyied to..
    i do apologize, on my behalf.

    no need to reply, since i don't want anyone earning medals, by posting to often.. ;o)

    apologies to everyone..
    trujade...

    help out microsoft for helping you.. test run 7
    Saturday, June 27, 2009 1:54 AM
  • Matt,

    I am thankful for the reply from trujade, which prevented to give the idea, that I am helping in any way with malicious software, therefore I proposed his answer and voted it as helpful as a signal to everybody.


    Cor
    Saturday, June 27, 2009 5:15 AM
  • Cor,

    Of course none of us on here would help with making malicious software. I just tend to give the benefit of the doubt to posters until it is clear what the intentions are. If I have any thought they are making malicious software I would not assist.

    Of course a "malicious" keygen would mean one needs to know the actual algorithm to generate valid keys for a specific piece of software, which is the actual crux of a keygen.
    Without that, all you will ever have is a glorified random character generator ;) Which is the only code given in this thread.
    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com
    Monday, June 29, 2009 2:12 PM
  • I know this is a really long thread, but if you want an easy, LEGAL, way to create lots of product keys for your Visual Studio Setup Project, check out this Codeplex project(Product Key Generator, keygen.codeplex.com)

    Thanks...


    Kevin Schaefer "The world is round and the place which may seem like the end may also be the beginning"
    Sunday, July 26, 2009 4:40 AM
  • I know this is a really long thread, but if you want an easy, LEGAL, way to create lots of product keys for your Visual Studio Setup Project, check out this Codeplex project(Product Key Generator, keygen.codeplex.com)

    Thanks...


    Kevin Schaefer "The world is round and the place which may seem like the end may also be the beginning"

    Thanks to the reminding! I'll follow your instruction.
    Wednesday, September 01, 2010 4:44 AM
  • Sorry to say everybody, but the keygen your talking about isn't a real keygen. Keygen is short for Key Generator right? well the program you have shown isn't generating anything. It's choosing numbers inputted in the coding. What i mean is the program isn't generating anything. It's using what you already put in. A Keygen can make any random sort of numbers. Key Selector is only limited to what is entered in the source codes for it to display when a button is clicked.
    • Proposed as answer by Renee Culver Tuesday, February 19, 2013 11:12 PM
    Tuesday, September 14, 2010 12:53 AM
  • Sorry to say everybody, but the keygen your talking about isn't a real keygen. Keygen is short for Key Generator right? well the program you have shown isn't generating anything. It's choosing numbers inputted in the coding. What i mean is the program isn't generating anything. It's using what you already put in. A Keygen can make any random sort of numbers. Key Selector is only limited to what is entered in the source codes for it to display when a button is clicked.

    @ Qajs1  What is real keygen?

    kaymaf


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    Tuesday, September 14, 2010 1:59 AM
  • A Real Keygen Generates unused serials/Keys either using an Algorithm, or hacking the server in which the keys are held.

    If the key is in the source code then as I said before it is not GENERATING anything.

    Here is how to find out if a Keygen is real or is just a key-selector: Open the Keygen twice and click Generate on each Window once.

    If the Serials are the same then it is a Key-Selector.

    ________________________________

    For more Visit QajsProductions.com or for some of my programs visit: VillaCorp.com

    Sunday, September 26, 2010 6:55 PM
  • A Real Keygen Generates unused serials/Keys either using an Algorithm, or hacking the server in which the keys are held.

    If the key is in the source code then as I said before it is not GENERATING anything.

    Here is how to find out if a Keygen is real or is just a key-selector: Open the Keygen twice and click Generate on each Window once.

    If the Serials are the same then it is a Key-Selector.

    ________________________________

    For more Visit http://QajsProductions.ucoz.com/ or for some of my programs visit: http://VillaCorp.ucoz.com/


    you are talking about keygen in another application but OP question is how he can make key for his program.

    kaymaf


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    Sunday, September 26, 2010 7:01 PM
  • No, He's asking how to get a Key which he can add to his keygen. well....his overall question is "Can anyone make a Real Keygen"

     

    He doesn't want a keygen for his program, he wants to know if anyone can make a real Keygen. Not a Key-Selector. He wants to make a keygen for a program that isn't his. If he was talking about making a keygen. It's like making a Keygen for Camtasia Studio. There's probably millions of keys, new keys are made by Techsmith so they can give to people that buy their product. But when a  keygen is used it takes any unused but still activated keys and gives them to other people. EIther hacking the server which holds all the Keys, or using an Algorithm

    ________________________________

    For more Visit QajsProductions.com or for some of my programs visit: VillaCorp.com

    Monday, September 27, 2010 10:44 PM
  • One other thought that has just occurred to me, often people will use the hard-drive serial number which is retrieved from the hardware of the hard-drive itself. An activation server may take a number of factors into account such as this when providing the activation back to a piece of software over the internet. A more secure piece of software may even change its activation code on a regular basis based on the date and the time of day or whatever.

    More and more banks are providing users with a digital key fob that changes the number on its display on a regular basis. The same kind of idea could be used with other software.




    Regards,

    profile for John Anthony Oliver at Stack Overflow, Q&A for professional and enthusiast programmers

    Click this link to see the NEW way of how to insert a picture into a forum post.

    Installing VB6 on Windows 7

    App Hub for Windows Phone & XBOX 360 developers.


    Friday, November 11, 2011 3:05 PM
  • Here you go:

    Needs a form with a button and a multiline TextBox

    Option Strict On
    Public Class Form1
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim strMain As String = ""
            Dim strKey As String = ""
            Dim a, b As Integer
            For a = 1 To 20
                strMain &= UCase(Guid.NewGuid.ToString)
            Next
            strMain = Replace(strMain, "-", "")
            Dim MyRnd As New Random
            For b = 1 To 25
                strKey = ""
                For a = 1 To 25
                    strKey &= Mid(strMain, MyRnd.Next(1, strMain.Length), 1)
                    If a Mod 5 = 0 And a <> 25 Then strKey &= "-"
                Next
                TextBox1.AppendText(strKey & vbCrLf)
            Next
        End Sub
    End Class
    
    

    Saturday, November 12, 2011 2:49 AM
  • I think you guys have taken this a bit off topic.

    First of all, you should never assume, with such limited information, that someone is looking to make malicious software.

    Just looking at the sample code the OP provided would lead any of you to believe this guy doesn't know how to make a keygen to actually generate valid keys to some piece of commercial software. He never stated that was the goal, and if he had the ability and knowledge to do it, he wouldn't be stuck on the specific question that he asked.

    Obviously companies who make software they uses a product key need some way to generate them when they sell their product don't they?

    Please stop the personal attacks, and please keep these threads on topic. If you feel a thread has malicious content or malicious intent, please request a moderator to review it. The fact that I was the first one to post in this thread should have been an indication to you that this thread is fine, as it stands now, until there is reason to consider it malicious.
    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com
    Thanks, it's nice to see that at least the mods have good sense.  Gets a little tiresome seeing the same old culprits on here jumping on people who ask genuine questions, like they're the forum thought police.
    Sunday, November 13, 2011 1:40 AM
  • Actually im sorry that you didn't tell him that a  key generator guarantees - No dups.

    Renee


    "MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me
    Sunday, November 13, 2011 4:36 AM
  • I agree!

    Renee


    "MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me
    Sunday, November 13, 2011 4:38 AM
  • "do stuff" is rather non-specific.

    Renee


    "MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me
    Sunday, November 13, 2011 4:39 AM
  • hahaha, i'm still larfing my arse off here at the way this thread has turned out!

    so here's me, legally working for my legal development company (we're registered at companies house and all that sh*t), getting together an installation package for one of our clients, like ya do... when we decide to give it an installation product key.  30mins later, bingo!  job done!

    "so, how can we automatically generate some random keys for our software?" we thought.  i know,  msdn of course... bound to be some help there. 

    low and behold there is (see top of this thread)

    then the comedy starts.... wtf!  i'm going to read on in case it gets funnier.  there's some people on this thread that need to.....  well....

    Thursday, May 03, 2012 1:40 PM
  • hahaha.... yeah, whoever heard of a hacker using msdn,  please...
    Thursday, May 03, 2012 1:55 PM
  • booooo.

    this is far to entertaining to stop now

    Thursday, May 03, 2012 2:00 PM
  • hahaha.... yeah, whoever heard of a hacker using msdn,  please...

    Even if there was, you wouldn't know or have heard. Googling is free and easy. Anyone can access and use MSDN forums. Perhaps a few people with malicious intent may come across this piece of code and finished their keygen with a malicious intent.

    I don't know why you find this so entertaining at all.


    Sorry if my English is poor, it's not my first language. :) Programming FTW! Samuel
    Useful links:


    Thursday, May 03, 2012 2:12 PM
  • oo, that looks like just the job devon

    cheers, think i'll grab it and pop it into a form if you dont mind.

    then it's off to the pub to drink lots of beer and have a larf.

    incidentally, don't suppose you know how to write a little app that could generate serial numbers for micr.......

    Thursday, May 03, 2012 2:17 PM
  • Matt - just use the code I posted and try each one until it works.

    It may take a little while so don't give up.

    Thursday, May 03, 2012 4:12 PM
  • hahaha.... yeah, whoever heard of a hacker using msdn,  please...

    You stupid bro?

    Here's a person asking:

    http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/556bf719-4929-4a16-9a68-b72df22e4caf

    There's plenty more but that is probably the most famous within the year.


    Jordan St. Godard | Microsoft® Community Contributor 2011

    double twoCents = .02;
    Console.WriteLine("$" + twoCents.ToString());

    Thursday, May 03, 2012 4:24 PM
  • hahaha.... yeah, whoever heard of a hacker using msdn,  please...

    You stupid bro?

    Here's a person asking:

    http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/556bf719-4929-4a16-9a68-b72df22e4caf

    There's plenty more but that is probably the most famous within the year.


    Jordan St. Godard | Microsoft® Community Contributor 2011

    double twoCents = .02;
    Console.WriteLine("$" + twoCents.ToString());

    Which (after a quick read of it) he stated repeatedly that he wanted to use it to test the strength of passwords.  The problem is that anything could be used maliciously, and I don't think sharing knowledge is the problem.  As far as "hackers using MSDN" goes, if they're looking to a .NET language for cracking purposes then they're so far off the mark that even if someone does tell them what they want to know it's still unlikely to do them any good.

    Simply providing an algorithm for looping and generating combinations is not going to do any harm and is useful knowledge to a lot of people for a lot of purposes.  You could email a basic physics lesson about nuclear chain reactions to a 3rd world leader but that doesn't mean they'd have the resources to make an atomic bomb.

    Thursday, May 03, 2012 4:53 PM
  • If you want to create keys for your own software, then you can use this code snippet:

    Public Class KeyGenerator
    
        Private KeyChars As String() = {"B", "C", "D", "F", "G", "H", "J", "K", "M", "N", "P", "Q", "R", "T", "V", "W", "X", "Y", "2", "3", "4", "6", "7", "8", "9"}
        Private KeyLength As Integer = 25
        Private Rnd As New Random()
    
        Public Sub New(Optional length As Integer = 25)
            Me.KeyLength = length
        End Sub
    
        Public Function generateKey() As String
            Dim Key As String = ""
            For i As Integer = 1 To Me.KeyLength
                Key &= KeyChars(Rnd.Next(0, 24))
            Next
            Key = Key.Insert(5, "-").Insert(12, "-").Insert(17, "-").Insert(23, "-")
            Return Key
        End Function
    
    End Class

    Usage:

    Dim keygen As New KeyGenerator()
    MsgBox(keygen.generateKey())

    Regards, Hassowuff


    • Edited by Hassowuff Tuesday, January 29, 2013 9:18 PM
    Tuesday, January 29, 2013 9:16 PM
  • I dont know what the problem is.

    A key gen has many part and a main pieci is on a server somewhere.

    Key are trans formed algorithmically, sent to the server encrypted to see if it conforms to an algorithm and if it has been used and a yay or nay is returned. It's not the least bit dangerous. What's alarm?

    Renee


    "MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me

    Tuesday, January 29, 2013 11:32 PM
  • I just realized that the code I posted could generate a valid key.

    It might take a few tries...............

    Thursday, January 31, 2013 1:25 AM
  • Hello All

    I am new to visual basic programming code, ive come across this forum thread as i have browsed through the vb threads here at msdn forums,

    a lot of people get really defensive when they are asked about key gens and the like, "CANT BLAME YA's REALLY"

    the reality of it is that somewhere on the msdn vb forums as with anywhere else on this forum there is a code of conduct to be kept/upheld at all times, there is even threads on here that go on about the lack of help you will get if suspected of using any supplied code for malicious use.

    When Key-Gens get used to crack softwares, it is the developer of the said program that is being cracked that is being wronged and made out of pocket, its in our duty's as expert/amateur VBers to be able to all get along, i started to learn vb as i wanted to write my own programs as well as to learn a computer programming language,

    My Point being,

    that unless you can prove otherwise, any help anybody may recieve is all down to the way you ask and to how well you take critiscismn, not wether or not you are a hacker fishing for some code help, after all there are a number of forums and YouTube that can help people with things like that,

    chances are that if you are asking about something that can crack passwords or key gens then therse a slight/high chance you will get overlooked unless, like i said before you want it for LEGITIMATE REASONS,

    thank you all for reading my rant

    markh72

    P.S. Brilliant forums allways checking in and looking around

    • Proposed as answer by markh72 Thursday, January 31, 2013 6:38 PM
    Thursday, January 31, 2013 6:37 PM
  • NONE of these seem any good. The ms keygen includes correspondence between nodes on the net and what a go-nogo answer may be, given the input code. Thats how MS knows if a number has been used.

    Renee


    "MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me

    Tuesday, February 19, 2013 11:09 PM