Want to know how i can secure my lsp code
I have the lsp code I have converted in. FAS Format and i want to give it a extra layer of security For that What can I use?
Comments
-
NOTE Fas is Autocad, DES is Bricscad.
Multiple ways,
(getvar '_pkser)
Hard disk ID.
Networkcard ID.
getenv set a value in the registry. (setenv.
Ping a remote server and get a user code.
Check a server for username.
Ok the ps you can make a check lsp program say a few lines of code, using old fashioned DOS ie CMD now you can write a bat file that copies the security lsp and adds it to the lisp to be compiled.
(copy d:/compile/security.lsp+prog1.lsp d:/compile/prog1.lsp
Repeat for each lsp file, do like 100+ in one go.
2nd step some options.
(vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) "Vlide")
(setq loads (list
""xxx 3d pts on face 4"
"xxx block atts invisible"
"xxx Change client logos-3"
"xxx Close plines"
"xxx Cogo Label_C"
"xxx delete client image-3")
)
(setq loc1 "C:\xxx-CAD-TOOLS\") ;;change dirs to where ever you want them found
(setq loc2 "D:\xxx\compile\") ;;change dirs to where ever you want them saved
(foreach lisp loads
(vlisp-compile 'st (strcat loc1 lisp ".lsp") (strcat loc2 lisp ".fas"))
)0