how to make a Application that need a serial key ?

please read.

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 36715 Views - Last Post: 11 April 2012 - 02:47 PM Rate Topic: -----

#1 Trickster090  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 41
  • Joined: 02-June 08

how to make a Application that need a serial key ?

Posted 08 July 2008 - 01:26 AM

Hi,

I would like to make an application that will propt the user to enter a serial key in after 10 or 30 days...

if that is possible..

also

i would allso like to make a keygen tha will work with this program.

can anybody help me with this
or is it imposssible? :D

Is This A Good Question/Topic? 0
  • +

Replies To: how to make a Application that need a serial key ?

#2 Trickster090  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 41
  • Joined: 02-June 08

Re: how to make a Application that need a serial key ?

Posted 08 July 2008 - 02:30 AM

-Bump-

Somebody please help.
Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5247
  • View blog
  • Posts: 27,066
  • Joined: 10-May 07

Re: how to make a Application that need a serial key ?

Posted 08 July 2008 - 02:32 AM

View PostTrickster090, on 8 Jul, 2008 - 04:26 AM, said:

I would like to make an application that will propt the user to enter a serial key in after 10 or 30 days...

if that is possible..


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
Was This Post Helpful? 0
  • +
  • -

#4 Trickster090  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 41
  • Joined: 02-June 08

Re: how to make a Application that need a serial key ?

Posted 08 July 2008 - 02:38 AM

i havn't made any code yet

i need to know what code i need to put in ...If that makes any sense

(sorry im in school,i don't have vb in school and i don't have internet at home)
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5247
  • View blog
  • Posts: 27,066
  • Joined: 10-May 07

Re: how to make a Application that need a serial key ?

Posted 08 July 2008 - 02:41 AM

View PostTrickster090, on 8 Jul, 2008 - 05:38 AM, said:

(sorry im in school,i don't have vb in school and i don't have internet at home)

Then my best suggestion to you would be to get a book on Visual Basic programming, either from the library or buy one used for cheap. Learn how to perform conditional statements. That will at least get you started.

Seriously... you have to learn to walk before you can run.
Was This Post Helpful? 0
  • +
  • -

#6 Trickster090  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 41
  • Joined: 02-June 08

Re: how to make a Application that need a serial key ?

Posted 08 July 2008 - 02:42 AM

ok heres a better question

How do i make a keygen?????
Was This Post Helpful? -1
  • +
  • -

#7 Damage  Icon User is offline

  • Lord of Schwing
  • member icon

Reputation: 28
  • View blog
  • Posts: 1,090
  • Joined: 05-June 08

Re: how to make a Application that need a serial key ?

Posted 08 July 2008 - 03:04 AM

well you need to decide what type of encyption your going to use. VB.net has its own file encryption, the File class has Encrypt() and Decrypt() methods that will hide important information from prying eyes. These methods use your login account to build the key used to do both the encryption and decryption, so they’re
not terribly secure.

Otherwise there PLENTY of books and sites out there about encryption.

Once you settle on the algorithm then you can have a look a coding it.
Was This Post Helpful? 0
  • +
  • -

#8 Trickster090  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 41
  • Joined: 02-June 08

Re: how to make a Application that need a serial key ?

Posted 08 July 2008 - 03:06 AM

im going to use the defualt incryption

but i still need to know the basic structure of making a keygen

i can't find any tutorial anywhere
Was This Post Helpful? 0
  • +
  • -

#9 Damage  Icon User is offline

  • Lord of Schwing
  • member icon

Reputation: 28
  • View blog
  • Posts: 1,090
  • Joined: 05-June 08

Re: how to make a Application that need a serial key ?

Posted 08 July 2008 - 03:14 AM

or you could use a startup form that asks the user to enter in a number that matches certain criteria, eg a six digit number where every 3 digit is 2 or something and then validate it.

Algorithm (not code)
startingpoint = 2

loop 2 times
if key.substring(startingpoint,1) =2 then
startingpoint = 5
continue
else
message "wrong key"
end if

but that sorta thing is really easy to crack if they wanted to
Was This Post Helpful? 0
  • +
  • -

#10 Rickster0  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 236
  • Joined: 08-July 08

Re: how to make a Application that need a serial key ?

Posted 10 July 2008 - 03:50 AM

well i know a simple way.

open up Visual Basic 2008
create a new Window form application
Add a text box
add a label saying ,enter serial key,
then add a button saying Register

know double click on the button to open up the code editor

in sert this piece of code
If textbox1.text = "'Serial key goes here'" Then
 messagebox.show("Thank you for regerstring this product")
 else 
 Messagebox.show("Invalid Serial Key")
 End If 



That should give you what you are looking for
even thought it is a very simple way.

but this wont give yo a worning after 30 days. so you would have to use it as a Start up form
and Quit the program if the user dosen't enter a serial key.

This post has been edited by Rickster0: 10 July 2008 - 03:53 AM

Was This Post Helpful? 1
  • +
  • -

#11 Trickster090  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 41
  • Joined: 02-June 08

Re: how to make a Application that need a serial key ?

Posted 10 July 2008 - 03:57 AM

Thank this worked ok,i will just have to forget about the 30 expiry date

coz this will do fine.


-Edit-

i took your test and cam out as Sephiroth Yay!

This post has been edited by Trickster090: 10 July 2008 - 03:59 AM

Was This Post Helpful? 0
  • +
  • -

#12 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1382
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: how to make a Application that need a serial key ?

Posted 10 July 2008 - 04:02 AM

Think how you could make it expire after 30 days. Here's one of the most basic methods, which would be easy to hack, but nonetheless you might learn something from making it:
  • Make a note of the date of installation.
  • Calculate what the date will be in 30 days.
  • If the system date matches the expiry date, lock out the program.

Edit:
:o Trickster and Rickster... Cloud and Sephiroth!
Is it time for another DIC fight to the death?
Was This Post Helpful? 0
  • +
  • -

#13 Rickster0  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 236
  • Joined: 08-July 08

Re: how to make a Application that need a serial key ?

Posted 10 July 2008 - 04:15 AM

View Postgabehabe, on 10 Jul, 2008 - 04:02 AM, said:

Edit:
:o Trickster and Rickster... Cloud and Sephiroth!
Is it time for another DIC fight to the death?


My arch Enemy is here NO!!!!!!!!!!!!!! :crazy:

looks like im goint to have to get Tifa, barret, RED XII, and Vincet to join this Site then

.......

I'm glad i helped you thanks for thankng me. :D

This post has been edited by Rickster0: 10 July 2008 - 04:16 AM

Was This Post Helpful? 1
  • +
  • -

#14 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1382
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: how to make a Application that need a serial key ?

Posted 10 July 2008 - 04:22 AM

I thought it was Red XIII ;)
Was This Post Helpful? 0
  • +
  • -

#23 Roxor  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 41
  • Joined: 27-August 09

Re: how to make a Application that need a serial key ?

Posted 13 September 2009 - 10:49 AM

Oh, making a key generator is as simple as pye. I will show you a more "complex" mode to make a keygen, so please follow my steps in this tutorial:

First, make a form, if you got one, pass this step.
Make a button called "Get Reg Key" or whatever.
After this, you must make three neared textboxes, and at the properties tab modify the value MaxLenght to 4(this means you can only enter a 4 numbers code in them).
Now, double-click on the button "Get Reg Key" or whatever you named it, and paste the following code:
TextBox1.Text = Int(Rnd() * 1000)
		TextBox2.Text = Int(Rnd() * 7890)
		TextBox3.Text = Int(Rnd() * 54)
   End Sub

Make a new button, name it "Register:, double-click on it and paste the following code:
If TextBox3.Text = ("Button1") And TextBox2.Text = ("Button1") And TextBox1.Text = ("Button1") Then
			Me.Hide()
		Else
			MsgBox("Register Sucsessful!", MsgBoxStyle.Information)
		End If
	End Sub


Now, we''l talk about the code we've entered, and the actions who will take place:
TextBox1.Text = Int(Rnd() * 1000)
TextBox2.Text = Int(Rnd() * 7890)
TextBox3.Text = Int(Rnd() * 54)
means that, the code will generate some random numbers, and also show them each on the three textboxes. "1000" or "7890" is the maximum number to be randomly generated, so you can change it but with this configuration, only to a 4 numbers code, like "1009".

If TextBox3.Text = ("Button1") And TextBox2.Text = ("Button1") And TextBox1.Text = ("Button1") Then
Me.Hide()
Else
MsgBox("Register Sucsessful!", MsgBoxStyle.Information)
End If
will tell the button that, it can only show the message "register succesful...." if the number inserted is one generated by the "Get Reg Key Button". Isn't it logycaly???
Notes:
In the contex you asked:a register a program key generator,you should add a button Register, who will get you to the form wich contains the code and Code Generators. Make a button named "Register" on the form you want, and enter this code:
FormX.Show()

Where X is the number of the form where are those buttons showed upper.
Also, you may put in the same form with the upper buttons, a button named "Cancel", so people can close that form, if they don't want to register.Here's the code:
Me.Hide()

So,here's the hole information about how to make a nice Key Generator for a product. Leave a reply or contact me via Private Message for any unknowns.
And also, please give a Thank You(Thanks) to this post.
Glad to Help! :^:
Was This Post Helpful? 1

  • (2 Pages)
  • +
  • 1
  • 2