Eric:
I saw your previous post after I posted my previous mine.
This something that I didn't know and could be also usable, maybe it would work with encryption.
There is no built-in encryption as far as I know.
You could build a scheme for yourself ...
a) encrypt the NeoBook generated
Function file
b) deliver it with your .exe
c) before calling this external file, read into memory, decrypt it, save it to the
Temp folder and
Call the file in the Temp folder
Any Ideas to do the same when the script as text is saved in a database
I thought of that ... but in your case, you want the flexibility to update the script on an ongoing basis ... so you would have to ...
a) have a simple NeoBook program at your end to copy the contents of the (NeoBook generated) Function file into a "password protected and encrypted" Access Database
b) have the user ...
- save the database file in a specified folder in his machine
- click a button in your Application that will copy the contents from this received Database to the main Database
c) and any time you need to
Call this
Function, you can copy it to a file in the user's
Temp folder ... and
Call it from there
Note: If the "Database of External Scripts" is not large (shouldn't be) ... you could just send the entire (updated) Database to the user ... and have him replace the existing one.
Note that with either scenario, ... the content of the function file HAS to be unencrypted at time of execution by NeoBook ... so. still possible for user to read its contents ... you might consider giving the unencrypted file (in the
Temp folder) a random name each time ... and erase it soon after execution ... to make it that much more difficult for the user to read its contents.
Separately, if your script
can be run inside an HTML document, you might consider something like this ...
a) store all your
vb Function script content in a "password protected, encrypted" Access Database
b) at startup ...
-
BrowserLoadFromStr to load a "stub of an HTML document" in a
WebBrowser object (hidden from user view)
- copy content of each script to a separate NeoBook variable
c) when needed, do ...
Code: Select all
BrowserExecScript "WebBrowser99" "[appropriateVariableHere]" "VBScript"