forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Easy Registration Code

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Source Code
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1710
Location: Space and Time

PostPosted: Wed May 04, 2011 3:11 pm    Post subject: Easy Registration Code Reply with quote

I use a variation this of the in a few of my programs and it works well. It ties the registration to the serial of the HD that the software is installed on.

The string returned would be unique to the HD. You can change it up by putting dashes in or reversing the string. If you use VDS 6 you can use CRC instead of MD5 also.

Code:

:CheckReg
%%drv = @substr(%0,1,1)
%%hd2 = @encrypt(@volinfo(%%drv,Z)"YourExtraProtectionString")
%%md5 = @encrypt(%%hd2,MD5)
if @equal(%1,%%md5)
   exit %%md5
end
Exit

_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Source Code All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group