Program security (preventing sharing)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Savio
    New Member
    • Sep 2007
    • 2

    Program security (preventing sharing)

    Hi there,

    I have written a program in VB 6.0 and I want to sell it to a client. I do not wish that the client distributes my program to someone else. Can anyone guide me to code in a program that will recognise only that clients computer to whom I am selling it to?

    Pls help.
  • jamesd0142
    Contributor
    • Sep 2007
    • 471

    #2
    Originally posted by Savio
    Hi there,

    I have written a program in VB 6.0 and I want to sell it to a client. I do not wish that the client distributes my program to someone else. Can anyone guide me to code in a program that will recognise only that clients computer to whom I am selling it to?

    Pls help.
    Im new to vb.net but...

    i dont know how to do it but how about detecting their windows seriel key.

    you could...

    detect the seriel key encrypt it and store in a txt file, then everytime the programme loads retrieves the seriel key, encrypt it again and run a compare statement to check if it matches that stored in the text file.

    Thanks
    thanks

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Originally posted by jamesd0142
      Im new to vb.net but...

      i dont know how to do it but how about detecting their windows seriel key.

      you could...

      detect the seriel key encrypt it and store in a txt file, then everytime the programme loads retrieves the seriel key, encrypt it again and run a compare statement to check if it matches that stored in the text file.

      Thanks
      thanks
      Two persons also have same key or they can solve it by using the same copy of windows.
      I think if we use the computer name it can solve the problem or computer configuartion or any thing else but not windows serial key.
      OK
      GOODLUCK

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by Ali Rizwan
        Two persons also have same key or they can solve it by using the same copy of windows.
        If that's the case, then at least one of them is an illegal copy and you should not support it.

        Comment

        • kZero
          New Member
          • Nov 2006
          • 23

          #5
          Try this code

          [CODE=vb]Private Declare Function GetVolumeInform ation Lib "Kernel32" Alias "GetVolumeInfor mationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuf fer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialN umber As Long, lpMaximumCompon entLength As Long, lpFileSystemFla gs As Long, ByVal lpFileSystemNam eBuffer As String, ByVal nFileSystemName Size As Long) As Long
          Private Sub Form_Load()
          Dim Serial As Long, VName As String, FSName As String
          VName = String$(255, Chr$(0))
          FSName = String$(255, Chr$(0))
          GetVolumeInform ation "C:\", VName, 255, Serial, 0, 0, FSName, 255
          VName = Left$(VName, InStr(1, VName, Chr$(0)) - 1)
          FSName = Left$(FSName, InStr(1, FSName, Chr$(0)) - 1)
          Serial = Replace(Trim(St r$(Serial)), "-", "")
          MsgBox "Your Serial Number is " & Serial
          x = InputBox("Enter Activation Code for the serial " & Serial)
          ''' Make other Application for you to make the activation code and put in it this small code
          ' Serial = the serial that the customer will give you
          ' Activation = Val(Serial) * 50 / 5454 + 1542
          If x = Val(Serial) * 50 / 5454 + 1542 Then MsgBox "Activated" Else MsgBox "Invalid Activation Code"
          End Sub[/CODE]

          Comment

          • Savio
            New Member
            • Sep 2007
            • 2

            #6
            Thanks kZero. Shall try this out and see what I can do.

            Originally posted by kZero
            Try this code ...
            Last edited by Killer42; Oct 3 '07, 07:57 AM. Reason: Reduced excessive quote block

            Comment

            Working...