Serial Codes

Posts 1–9 of 9 · Page 1 of 1
Serial Codes
Ok, I would like to make a program, that generates a random serial number, then another program that people can use the serial that was generated and register their product. and thus making that serial not usable. and i have a site with access to cpanel and FTP accounts. Thanks
Ok so you need to research the following things please:

lookup the rand(); funtion for vb.net and convert your number to hex (Simplest way i can think of doing what you want)

Lookup SQL Querying (Going to be so much better than storing into a text file) (All you will need is to Add s/n's and then check if its used with a boolean flag)

With that you should be able to pull something off please reply with what you end up with
Yes I am very interested in this as well. I have the same access to the things as well.
could make it there username sha512 encrypted with a custom string,
and use that as there key. (and make it so it can only be entered once..)

just dont tell anybody that you did...
Generate Random Key
Code:
Function GenerateRandomString(ByRef length As Integer) As String
        Randomize()

        Dim allowableChars As String
        allowableChars = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()"

        Dim i As Integer
        For i = 1 To length
            GenerateRandomString = GenerateRandomString & Mid$(allowableChars, Int(Rnd() * Len(allowableChars) + 1), 1)
        Next
    End Function
Code:
  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim sLgth As String = TextBox2.Text

        If TextBox2.Text = "" Then
            MsgBox("Please enter a Char. Length")
        Else
            TextBox1.Text = GenerateRandomString(CInt(sLgth))
        End If
    End Sub
Use that to generate some keys then validate then with a database.
How is that creating a validatable key?
That's just making a random string.
That way, you would have to enter every key into the database yourself.

Why not just so it how I said, that way your only worrying about entering one key, mms using that for decrypting, and if it fails, its not a valid key.
Quote Originally Posted by *****179 View Post
How is that creating a validatable key?
That's just making a random string.
That way, you would have to enter every key into the database yourself.
Thats half of it. you could make the app generate a random key then add that key to a mysql database. then make the site somehow get the random key (i'm not very good with mysql, youtube/google some tuts). then merely make it so when the random key has been entered onto the site it checks with the mysql database and if it is correct then it erases that line/thingy/serial key
***** i dont understand your way?
This might help, idk didn't really watch much of it:
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us