Jump to content

Creating a Demo License

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
17 replies to this topic

#1
reniery

reniery

    Learning Programmer

  • Members
  • PipPipPip
  • 45 posts
Hey guys

So I have a a VB App I made, and I made sure to protect it using license keys, so no one but people who pay me can use it :)

Now what im trying to do , is create a demo license so people can try my app and see if its useful for them.
What I want to do is kinda like shareware, so when X days have passed the program should tell the user that the trial is over

So how would I do this

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Well, create a new type of license key, which might store the remaining days (or the end date) in some encrypted file, perhaps in the Registry. Then, when the program loads, tell it to check the value. If the trial is up, display a message/link to buy, and close the window again. If not, run as normal.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
reniery

reniery

    Learning Programmer

  • Members
  • PipPipPip
  • 45 posts
Thats what I did, I stored the key in the registry and then my program checks the encrypted date to see if its valid.
The thing is I compare the encrypted date with the system date so if the user changes the date they can still use the app.

Is there a better way to do this ? or what are the alternatives

btw Thanks for your help Xav

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Could you store the number of days left instead?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
reniery

reniery

    Learning Programmer

  • Members
  • PipPipPip
  • 45 posts
Yes I could, What kind of validation would I use to decrease the number of days left ?

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
What do you mean by validation?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
reniery

reniery

    Learning Programmer

  • Members
  • PipPipPip
  • 45 posts
Checking if something satisfies a certain criterion. I mean how would I know if its ok to decrease the number of days

#8
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Just run a simple "If" statement to check if the current value is bigger than 0. If so, decrease. If not... PAY TIME!
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#9
DevilsCharm

DevilsCharm

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 884 posts
I didn't realize creating a license was so simple. Now all I need to do is learn how to write desirable programs.

#10
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Good one, DevilsCharm! :D
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#11
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
You are making all this too simple to crack.

A simple IF .. without any protection can be easily cracked using reverse engineering and making that IF a NOP (No Operation in ASM) and it will be easily skipped .. no one pays and everyone happy... except you.

#12
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Which algorithm would you suggest, then?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums