Tokenizing is the way to go to protect your scripts from modification. KGen can automatically pull all needed UDFs together into a final script and then tokenize it in one step.

If you need to hide an external file content, such as an INI file, from prying eyes, you can download the "cipher" ZIP file from my web site.

It's tokenized to protect the logic but will work in most any script via a CALL command.

The cipher logic is based on the WWII German Enigma system. That system had 6 wheels with the alphabet (Caps only), numbers, and symbols. It placed the wheels into a known starting point, and as keys were pressed, the corresponding coded letter illuminated, and the wheels advanced when the key was released.

Cipher has up to 32,000 code wheels (user defined), which can encode an average of 10 pages of text before any cycle repeats, and supports all standard ASCII characters. With one codewheel, the standard A=X code we all learned in grammar school to mask the notes we passed. \:\) The advantage of this cipher is that it is generally immune from pattern matching decoding - something like "cat" could encode to "rrr" and still be recoverable.

KGen is part of my Kix Development Suite, and both of these can be downloaded from my web site.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D