What's new

[VB] How to make a Serial Protected Program

  • Thread starter Modded Crazy
  • Start date
  • Views 472
M

Modded Crazy

Enthusiast
Messages
258
Reaction score
37
Points
85
Sin$
0
How to make a Serial Protected Program

this tutorial was made by me and only me :smile:
Please Enjoy and give me Rep :tongue:


If you are just starting a project, read this otherwise skip to Step 4..
1.) Open Visual Basic
2.) Create a Project
3.) make it how you want it
4.) add another form to your program and name it Login
5.) add a Label saying "Serial Key:"
6.) add a textbox make sure its called "Textbox1"
7.) add 2 Buttons, button1 saying "&Ok" and button2 saying "&Cancel" (the & just adds a line underneth the first letter, just looks cool lol)


What Mine Looks like:

tut1.jpg



8.) Double Tap the Cancel button and just type
Code:
End
this just ends the whole program...
9.) go to "Solution Explorer and Double Click the bit that says "My Project"
10.) go to Settings and copy what i have done in the picture...
tut.jpg



11.) once done just go back to your Login/Serial Form, Now comes the coding :tongue:


12.) Double tap the top of your form..
13.) now add all the coding i do in the picture...

tut2.jpg


Full Code for login/serial form:

Code:
Public Class login


Private Sub login_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If My.Settings.Entered = "true" Then
main.Show()
Me.Close()
End If
End Sub

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
If Textbox1.Text = "This is what you want to be the serial" Then
MsgBox("Correct Key!", MsgBoxStyle.Information, "Correct Key")
main.Show()
My.Settings.Entered = "true"
My.Settings.Save()
My.Settings.Reload()
Me.Close()
Else
MsgBox("Incorrect Key", MsgBoxStyle.Exclamation, "Incorrect Key!")
End If
End Sub

Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click
End
End Sub
End Class


I hope you liked my tutorial :tongue:
More Soon :tongue:
 
L

Luxurious Meat

Enthusiast
Messages
610
Reaction score
124
Points
125
Sin$
0
Re: How to make a Serial Protected Program

You could just edit the settings file to make "Entered" to true and completely bypass this...
 
GoldBl4d3

GoldBl4d3

VIP
VIP
Retired
Programmer Mythical Veteran Legendary Veteran
Messages
3,785
Reaction score
1,452
Points
600
Sin$
0
Re: How to make a Serial Protected Program

lol lux, begginers :rolleyes:
 
G

GearsBobbleHead

Enthusiast
Messages
283
Reaction score
14
Points
70
Sin$
0
Re: How to make a Serial Protected Program

This appears to only allow one key.

If was me designing, would add a function that has my custom algorithm that generates keys, also would have to fit that algorithm on decrypt to make sure it is valid, then lauch the app if not, create massive log files in background and lovk down the pc until they buy it :tongue:
 
X

xItsKristenx

Enthusiast
Messages
162
Reaction score
37
Points
85
Sin$
0
Re: How to make a Serial Protected Program

This is just a password protected form.....

the right way to to it is like gears said

GearsBobbleHead said:
This appears to only allow one key.

If was me designing, would add a function that has my custom algorithm that generates keys, also would have to fit that algorithm on decrypt to make sure it is valid, then lauch the app if not, create massive log files in background and lovk down the pc until they buy it :tongue:
 
Z

Zer0-One

Experienced Member
Messages
2,178
Reaction score
256
Points
220
Sin$
0
Re: How to make a Serial Protected Program

if it was me designing it, i'd have a bunch of pre-generated keys that i'd give out once i received payment for the product. and on top of that, just in case someone figured out the algorithm i'd been using to generate the keys, verify each used key online, and make the program useless or keep it in a trial mode until a key has been verified.

don't include the key generating function with the program. the closer you put stuff like that to the end-user, the faster your app will be cracked.

btw, Daniel, good effort, but your way is the last way this should be done.
 
M

Modded Crazy

Enthusiast
Messages
258
Reaction score
37
Points
85
Sin$
0
Re: How to make a Serial Protected Program

:frown: sorry, i like to share beginners stuff so people start learning from my tutorials then get better :frown:
 
Z

Zer0-One

Experienced Member
Messages
2,178
Reaction score
256
Points
220
Sin$
0
Re: How to make a Serial Protected Program

haha. well good for you! but just know that as long as you post here, the people who aren't beginners are gonna make comments like this.
 
M

Modded Crazy

Enthusiast
Messages
258
Reaction score
37
Points
85
Sin$
0
Re: How to make a Serial Protected Program

I dont care about them. they can comment like it all they like and tbh they can stfu if they want to :thumbup:

Because no one starts programming and knows all coding ...
 
Top Bottom
Login
Register