How to create a Serialnumber for App programmatically?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yavuz Bogazci

    How to create a Serialnumber for App programmatically?

    Hi, we are developing an winforms application for task management. We want
    generate a serial number wich includes Username, Company Name and another
    Information as String. How can i create from these values a serial number?

    thanks
    yavuz
  • Ray Cassick

    #2
    Re: How to create a Serialnumber for App programmaticall y?

    There are tons of ways to do that. Way too many to cover here in entirety.
    here is what I had done before:

    If your DB structure has a unique id for each entity (username, company
    name, etc..) then you can simply concatenate those values together to crate
    the serial number.

    You can try taking all your strings, concatenating them together and
    creating a hash value from them.

    Allot of it depends on weather or not you need to be able to decompose the
    number back into it's component values or not really. If you use a hash type
    method then it is pretty much one way.



    "Yavuz Bogazci" <YavuzBogazci@d iscussions.micr osoft.com> wrote in message
    news:AA047B5F-14C0-45DA-9A76-8DD073022493@mi crosoft.com...[color=blue]
    > Hi, we are developing an winforms application for task management. We want
    > generate a serial number wich includes Username, Company Name and another
    > Information as String. How can i create from these values a serial number?
    >
    > thanks
    > yavuz[/color]


    Comment

    • Bob Powell [MVP]

      #3
      Re: How to create a Serialnumber for App programmaticall y?

      Have you looked at encryption and hash strings?

      It's not a number but it's a unique and reasonably uncrackable string if you
      use more than about 15 characters in it.

      --
      Bob Powell [MVP]
      Visual C#, System.Drawing

      Find great Windows Forms articles in Windows Forms Tips and Tricks


      Answer those GDI+ questions with the GDI+ FAQ


      All new articles provide code in C# and VB.NET.
      Subscribe to the RSS feeds provided and never miss a new article.





      "Yavuz Bogazci" <YavuzBogazci@d iscussions.micr osoft.com> wrote in message
      news:AA047B5F-14C0-45DA-9A76-8DD073022493@mi crosoft.com...[color=blue]
      > Hi, we are developing an winforms application for task management. We want
      > generate a serial number wich includes Username, Company Name and another
      > Information as String. How can i create from these values a serial number?
      >
      > thanks
      > yavuz[/color]


      Comment

      • Yavuz Bogazci

        #4
        Re: How to create a Serialnumber for App programmaticall y?

        Hi,

        no i havent! I need the serial in two ways. That means, i need to create the
        serial from the given informations and in my app i had to "decrypt" it to
        show the information and to use them.

        thanks
        yavuz


        "Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > schrieb im Newsbeitrag
        news:#Oxo0tuOFH A.688@TK2MSFTNG P10.phx.gbl...[color=blue]
        > Have you looked at encryption and hash strings?
        >
        > It's not a number but it's a unique and reasonably uncrackable string if[/color]
        you[color=blue]
        > use more than about 15 characters in it.
        >
        > --
        > Bob Powell [MVP]
        > Visual C#, System.Drawing
        >
        > Find great Windows Forms articles in Windows Forms Tips and Tricks
        > http://www.bobpowell.net/tipstricks.htm
        >
        > Answer those GDI+ questions with the GDI+ FAQ
        > http://www.bobpowell.net/faqmain.htm
        >
        > All new articles provide code in C# and VB.NET.
        > Subscribe to the RSS feeds provided and never miss a new article.
        >
        >
        >
        >
        >
        > "Yavuz Bogazci" <YavuzBogazci@d iscussions.micr osoft.com> wrote in message
        > news:AA047B5F-14C0-45DA-9A76-8DD073022493@mi crosoft.com...[color=green]
        > > Hi, we are developing an winforms application for task management. We[/color][/color]
        want[color=blue][color=green]
        > > generate a serial number wich includes Username, Company Name and[/color][/color]
        another[color=blue][color=green]
        > > Information as String. How can i create from these values a serial[/color][/color]
        number?[color=blue][color=green]
        > >
        > > thanks
        > > yavuz[/color]
        >
        >[/color]


        Comment

        • Crouchie1998

          #5
          Re: How to create a Serialnumber for App programmaticall y?

          So, you will need to use something like the Hard Drive Serial number to
          create a number that a user will have to e-mail you.

          There are a few available as freeware or shareware, but some cost a lot of
          money.

          The best method out is to look into the Windows Activation. It works on
          hardware.Yeah, its only in Base 24 & every 6 bit is a checksum, but if
          Microsoft can implement it, you can too. This info is available on the MSDN
          online documentation

          -------------------------

          Whatever method you use will be easy to reverse engineer. All you need is a
          debugger to set the breakpoints, enter a wrong serial & see where it jumps.
          Use an ASM program to change to 90 (NOP (No Operation)) therefore the jump
          if incorrect serial is never made...

          Crouchie1998
          BA (HONS) MCP MCSE


          Comment

          Working...