Page 1 of 1 1
Topic Options
#212388 - 2017-03-28 07:29 PM Encrypt script
Valentim Offline
Fresh Scripter

Registered: 2010-01-04
Posts: 46
Loc: Brazil, PE, Recife
How can encrypt script to prevent curious people from changing some information?

Of this
 Code:
Break ON
$clr = @COLOR
CLS


For this
 Code:
S|5qúÚìÉCxíôúË2Ö)èªgõ•§ï/;YPðA%Vo?®:~¦
Mœ`e<ÖÎ3Z¯3Àa%\Ƴ"
®*‰š[9ùžñ‘EY£í˜¡Î¤kN6mÿ™¬


and script still works normally
_________________________

Top
#212389 - 2017-03-28 08:39 PM Re: Encrypt script [Re: Valentim]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
See Tokenizing in the Manual. kix32.exe script.kix /t
Top
#212390 - 2017-03-29 01:03 PM Re: Encrypt script [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
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

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 687 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.05 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org