Results 1 to 36 of 36

Thread: creating 15 day demo

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Minnesota
    Posts
    86

    creating 15 day demo

    I'm not sure the best way to create a demo version of something I did. Can anyone help? Or a 10 time run will be good too. Thank you.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    or use the registry. There are many threads about using it. The easiest way would be to use the SaveSetting and GetSetting functions.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Minnesota
    Posts
    86
    could you explain a little more? I'm a bit confused.

  4. #4
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    Use savesetting and getsetting. Example:

    Set your Timer in the general section.

    Public Timesran As Integer

    In the form_load, get the number of times your program has run. If it has never been ran before then we need to skip the getsetting to avoid an error. If has has been run before then Timesran hsa been saved and we can check it. If it has been ran 5 times then the user will get a Msgbox saying His Evaluation period has expired and the program will end.

    Private Sub Form_Load()
    If GetSetting("MyApp", "Key", "Timescan") = "" Then GoTo ex:
    Timesran = GetSetting("MyApp", "Key", "Timescan")
    If Timesran = 5 Then
    MsgBox "sorry! Your evaluation period has expired!"
    End
    End If
    ex:
    End Sub

    In the Form_Unload you save the number of Times the progam has ran.

    Private Sub Form_Unload(Cancel As Integer)
    Timesran = Timesran + 1
    SaveSetting "MyApp", "Key", "Timescan", Timesran
    End Sub
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  5. #5
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Pittsburgh, PA
    Posts
    329
    you may want to do something to the setting you save so people can't easily change it.
    maybe get the windows username and xor it with the setting you save, so it wont be as easy to change.
    ______________

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    a simple sample for u leif:

    VB Code:
    1. 'Author: Reginald Wheat
    2.  
    3. Option Explicit
    4.  
    5. Public Function DateGood(NumDays As Integer) As Boolean
    6.     'The purpose of this module is to allow you to place a time
    7.     'limit on the unregistered use of your shareware application.
    8.     'This module can not be defeated by rolling back the system clock.
    9.     'Simply call the DateGood function when your application is first
    10.     'loading, passing it the number of days it can be used without
    11.     'registering.
    12.     '
    13.     'Ex: If DateGood(30)=False Then
    14.     ' CrippleApplication
    15.     ' End if
    16.     'Register Parameters:
    17.     ' CRD: Current Run Date
    18.     ' LRD: Last Run Date
    19.     ' FRD: First Run Date
    20.  
    21.     Dim TmpCRD As Date
    22.     Dim TmpLRD As Date
    23.     Dim TmpFRD As Date
    24.  
    25.     TmpCRD = Format(Now, "m/d/yy")
    26.     TmpLRD = GetSetting(App.EXEName, "Param", "LRD", "1/1/2000")
    27.     TmpFRD = GetSetting(App.EXEName, "Param", "FRD", "1/1/2000")
    28.     DateGood = False
    29.  
    30.     'If this is the applications first load, write initial settings
    31.     'to the register
    32.     If TmpLRD = "1/1/2000" Then
    33.         SaveSetting App.EXEName, "Param", "LRD", TmpCRD
    34.         SaveSetting App.EXEName, "Param", "FRD", TmpCRD
    35.     End If
    36.     'Read LRD and FRD from register
    37.     TmpLRD = GetSetting(App.EXEName, "Param", "LRD", "1/1/2000")
    38.     TmpFRD = GetSetting(App.EXEName, "Param", "FRD", "1/1/2000")
    39.  
    40.     If TmpFRD > TmpCRD Then 'System clock rolled back
    41.         DateGood = False
    42.     ElseIf Now > DateAdd("d", NumDays, TmpFRD) Then 'Expiration expired
    43.         DateGood = False
    44.     ElseIf TmpCRD > TmpLRD Then 'Everything OK write New LRD date
    45.         SaveSetting App.EXEName, "Param", "LRD", TmpCRD
    46.         DateGood = True
    47.     ElseIf TmpCRD = Format(TmpLRD, "m/d/yy") Then
    48.         DateGood = True
    49.     Else
    50.         DateGood = False
    51.     End If
    52. End Function
    53.  
    54.  
    55. 'Usage
    56.  
    57.  Private Sub Form_Activate()
    58.     If Not DateGood(30) Then
    59.         MsgBox "Trial Period Expired!", vbExclamation, "Unregistered application"
    60.         Unload Me
    61.     End If
    62. End Sub

    go create
    -= a peet post =-

  7. #7
    Junior Member Daler Mehndi's Avatar
    Join Date
    Nov 2001
    Posts
    31
    Yes but very easy to hack application! User go to registry-- change number uses
    PUNJABI!!!!!

    Daler Mehndi
    Eastern Dance Star and VB-World KKK (Kitty Kat Klub)
    http://www.daler.com/

    Daler say "Alo!"!

  8. #8
    DaoK
    Guest
    I think he just wanted to show you how to make it, then you need to encrypt it.

  9. #9
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by Daler Mehndi
    Yes but very easy to hack application! User go to registry-- change number uses
    Originally posted by DaoK
    I think he just wanted to show you how to make it, then you need to encrypt it.
    u'r both right

    when it comes to encryption/decryption I suck bigtime....

    where is eiSecure when u need him ???
    -= a peet post =-

  10. #10
    DaoK
    Guest
    You can make a easy encryption. The registery thing will stop about 15% of user, a small encryption will block about 50% of the other. A small encryption is like : changing the asc letter +1 for exemple. Most of person will not understand than it's crypted and will stop searching because they do not understand at all

  11. #11

    Re: creating 15 day demo

    Originally posted by leif
    I'm not sure the best way to create a demo version of something I did. Can anyone help? Or a 10 time run will be good too. Thank you.
    There's also ActiveLock; try searching for it at http://www.activex.com/ .

  12. #12
    DaoK
    Guest
    Turtle and his activelock





  13. #13
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    Encprypt / Decrypt:
    VB Code:
    1. Public Function Encrypt(sStr As String) As String
    2. Dim iLength As Integer
    3. Dim sEachLetter As String
    4. Dim i As Integer
    5. Dim sNewString As String
    6.  
    7. iLength = Len(sStr) 'Added Trim$ to remove any trailing spaces entered
    8.  
    9. 'Encrypt each character in the string
    10. For i = 1 To iLength
    11.     'Take 1 character at a time
    12.     sEachLetter = Mid(sStr, i)
    13.     'Convert the character to ASCII then add the encryption key then convert that value to a character
    14.     sEachLetter = Chr((10) + Asc(sEachLetter))
    15.     'Append each encrypted value to a new string
    16.     sNewString = sNewString & sEachLetter
    17. Next i
    18.  
    19. Encrypt = sNewString
    20.  
    21. End Function
    22.  
    23. Public Function UnEncrypt(sStr) As String
    24. Dim iLength As Integer
    25. Dim sEachLetter As String
    26. Dim i As Integer
    27. Dim sNewString As String
    28.  
    29. iLength = Len(sStr)
    30.  
    31. 'UnEncrypt each character in the string
    32. For i = 1 To iLength
    33.     'Take 1 character at a time
    34.     sEachLetter = Mid(sStr, i)
    35.     'Convert the character to ASCII then subtract encryption key then convert that value to a character
    36.     sEachLetter = Chr(Asc(sEachLetter) - (10))
    37.     'Append each unencrypted value to a new string
    38.     sNewString = sNewString & sEachLetter
    39. Next i
    40.  
    41. UnEncrypt = sNewString
    42.  
    43. End Function

  14. #14
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Originally posted by DaoK
    Turtle and his activelock




    Hey, don't 'diss ActiveLock! It is one of the best/affordable VB solutions for copy protection out there! (version 5, that is. v6.0 sucks because you don't control registration process.)

    Anyways, the best way to do it would be to store it in the registry, as well as appened a copy of it (encryped, of course), to the end of your program's executable. This way, when your program runs, it checks both places.

    ...also helps a bit if it stores a MD5 hash of the EXE at the end of the EXE file.

  15. #15
    DaoK
    Guest
    I only understand encryption who work with the asc number of the letter and I do not understand what MD5 and 128 bits encryption mean

  16. #16
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    MD5 isn't encryption, but only a "hash" algorithm. What's a hash algorithm, you ask?

    A hash is something where you can go from 1 source to the other, but not vice versa. For example, 1+2+3+4+5=15. However, if you are given the number 15, it is hard to arrive at the numbers 1, 2, 3, 4, and 5.

    A hash algorithm is like the same idea, except A LOT more complicated.

    128-bit encryption basically means that's how long your encryption keys are. It does not guarantee security, since a user using 128-bit encryption on file with the password "abc" will be easily breakable.

    Someone once said: "If the door's locked, there's always the window."

  17. #17
    DaoK
    Guest
    2 questions :

    1-Md5 : how can you find the pass if it's only one way?


    2-128 bits : abc do not have 128 of lenght...how they do to have 128?

  18. #18
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    MD5: It hashes the input and compares it with the original hashed version.

    128-bit: ABCs do not contain 128-bits, but if you put many letters together, along with other characters, such as §, Å, ¶, etc. you get 128-bits. (Yeah, REALLY bad explanation here...)

    If you want to learn more, read Applied Cryptography by Bruce Schneier.

  19. #19

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Minnesota
    Posts
    86
    This stuff is going to take a while for me to pick up. I had originally put in what ARC had wrote. Should I take it out and go with one of these newer suggestions?

  20. #20
    DaoK
    Guest
    thx you EI !!!

  21. #21
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Originally posted by DaoK
    thx you EI !!!
    Sure, no problem!

  22. #22
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Originally posted by leif
    This stuff is going to take a while for me to pick up. I had originally put in what ARC had wrote. Should I take it out and go with one of these newer suggestions?
    ARC's idea is a basic implementation of what we have said.

    If you want better protection, you should go with the appending to EXE and encryption stuff.

  23. #23
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    Guys... get real. 95% of Comp users have no clue how to search the registry and change things in it. 3% of the 5% left wouldn't know what they were looking for and if the found it would not know exactly how to change it to make it better.


    The other 2% you only have to worrie about if it's a big time proggy like VB or Photoshop or something.

    If you are working on a company/widley distributed program you will want to encrypt your registry settings otherwise... for a normal VB prog i wouldn't waste my time.
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  24. #24
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    lol....here's 2 questions/statistics for ya:

    1. does that survey include adults? If it does, then it's HUGELY biased.

    2. Did you know that 85.4% of all statistics and figures have no scientific base, and are made up as you go along?

  25. #25
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    No actualy that is going on myself and everyone i know as well as knowing that Most people are computer illiterate. By computer illiterate i mean they can work AOL and Excel and Word but as far as digging into the registry... no way. I know how to save and get from the registry but even I as a programmer wouldn't know how to look in there and reset a programs time used setting. I think i know a hell of alot more than "most" people. So My Percentages are based on common sense not just grabed out of thin air.
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  26. #26
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    I'm sorry, but from people I know/have met, there are A LOT of people who are good at computers.

    Many adults don't get them, but almost all kids have a pretty decent knowledge of computers.

    Judging from my friends (no, they're not geeks/hackers), I'd say that your solution will provide a VERY low level of security, since even my little brother (4 years old) knows how to turn on computer, log on (we're using Win2K), open IE6, go to shockwave.com/run Red Alert 2, and beat the computer.

  27. #27
    DaoK
    Guest
    IF you hide your stuff in the registery with a weird name and in a weird place no one will find it

  28. #28
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    *ahem*RegMon*ahem*

  29. #29
    DaoK
    Guest
    You can use number : 9293217 no one will know it's your program

  30. #30
    QuaffAPint
    Guest

    MD5

    I can say one thing - whatever software method you use it will be cracked.

    I used MD5 with some extras thrown on top and a keygen was out in the crack world in a few weeks.

    But, you have to kind of expect it. All you can do is change the keygen around every other release, so at least it makes it a little harder for people who have a cracked copy to be able to use the "latest" version. Plus, you don't want to make it too inconvenient for all the legit folks out there.

    -QuaffAPint

  31. #31
    pmpm
    Guest
    ==============================================
    Hey, don't 'diss ActiveLock! It is one of the best/affordable VB solutions for copy protection out there!
    ==============================================

    To eiSecure about activelock:

    Affordable - YES
    Best - COMPLETELY WRONG (if you want to know why I can explain)

  32. #32
    DaoK
    Guest
    Best - COMPLETELY WRONG (if you want to know why I can explain)
    ?

  33. #33
    pmpm
    Guest
    What do you mean by '?'

  34. #34
    Lively Member nemesys777's Avatar
    Join Date
    Nov 2001
    Posts
    103
    Ok, so lets say that text was encrypted. It contained a bunch of mush characters along with the text. For instance...
    H§ELÄ__§LO

    Would you have to make a "filter" if you wanted to read the text?
    Tell it not to display all the mush chars, and just the reg alphabet????

    Im trying to figure something out, and this may help me. Bare with me

  35. #35
    DaoK
    Guest
    ? = question = i do not understand = d'uh

  36. #36
    pmpm
    Guest
    You don't need to explain me the question mark . Didn't you understood my sentence or didn't you understood why I said that?

    Bottom line: Activelock can be easily cracked (stupid thing is that you can crack it without debuggers and disassemblers; you only need vb)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width