General CADD Pro Free Help Forum

Free Support for All Interested in General Cadd Pro

The New Generic CADD for Windows

 
Topic Options
#30928 - 08/31/12 09:12 PM *NEW* /KEYOK Command for Hardware Keylok Security!
Robert Cowan Offline
Member

Registered: 06/18/02
Posts: 31
Loc: NW Florida, USA
I've been working with Matt to develop the ability for users to protect (and/or encrypt) their macros for a particular hardware key or a group of keys. He just sent me an update for Version 10 that has a new command: /KEYOK

Here's the syntax: /KEYOK,ID1,ID2,,,,; where ID's are the hex identifiers for hardware keys that will be allowed to run the macro. Now...the macro can be encrypted using the /ENCRYPT2 command and only the ID's that are listed in the /KEYOK command will be allowed to run the macro.

Here's some samples:

/KEYLOK,AE1,AE2,AE3,AE4,AE5,AD,148; (only ID's in list can run macro -- put the command at the top of the macro)

-OR-

/VSTR,10,'1F8';
/KEYLOK,AE1,AE2,AE3,AE4,AE5,AD,$S(10),148;

With this example, a string variable can be used to pass an identifier to the /KEYOK command. The value of the string could be read from a file, etc...

This new command offers a lot of flexibility to anyone that writes macros that they want to protect.

Top
#30929 - 08/31/12 09:34 PM Re: *NEW* /KEYOK Command for Hardware Keylok Security! [Re: Robert Cowan]
Eric Davis, PSM Offline
Member

Registered: 12/13/01
Posts: 743
Loc: Cape Coral, Florida, USA
I am just curious, what kind of macros are you writing that you would want them to be protected? What discipline do you use General Cadd for. Are you going to offer macros for sale?

If someone gets ahold of a protected macro couldn't they just edit out the /KEYLOK line in the macro?

Top
#30930 - 08/31/12 10:11 PM Re: *NEW* /KEYOK Command for Hardware Keylok Security! [Re: Robert Cowan]
Robert Cowan Offline
Member

Registered: 06/18/02
Posts: 31
Loc: NW Florida, USA
Yeah Eric, I guess more sophisticated users could edit out the /KEYLOK line but my reason for encrypting is as much to prevent screwing up the functionality of the macro as it is to copy protect any 'proprietary' programming. My partner and I have had a package written in macros available since 1992 back in the Generic Cadd days for industrial gasket fabricators. Our website is www.gaskcadd.com. It is written entirely in the General Cadd Macro Language and requires a custom hardware key to run. Recently we've had some custom work that we would like to limit to just a few users without having to get a custom hardware key and this is what Matt came up with. I think for the casual programmer/developer, it is a great tool. What do you think?

Top
#30931 - 09/01/12 08:37 AM Re: *NEW* /KEYOK Command for Hardware Keylok Security! [Re: Robert Cowan]
Robert Cowan Offline
Member

Registered: 06/18/02
Posts: 31
Loc: NW Florida, USA
NOTE: Either /KEYLOK or /KEYOK will work. Matt anticipated possible typos since the device is known as a KeyLok and the command is supposed to indicate that these "Keys are OK". My use of both in my original post show how easy it is to do....oops!!

Top


Moderator:  Bjorn Holmgren 
Search

Who's Online
0 registered (), 3 Guests and Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Alan Hine, Exchalkie, alkeng, faceimage, calderon
1922 Registered Users
Forum Stats
1922 Members
25 Forums
4035 Topics
27924 Posts

Max Online: 192 @ 10/26/12 11:58 AM
May
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31