mIRC Home    About    Download    Register    News    Help

Print Thread
#170063 02/02/07 02:06 PM
Y
yetti
yetti
Y
Is there anyway you can encrypt/code a pice of script so that it cant be read or modified?

I can make the script work only if a certain IP runs it, but if someone else who has basic knowledge of scripting modifies it to his IP, it will work.

Can I prevent the script from being modified?

#170064 02/02/07 02:14 PM
Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995
The best (and only) way to protect your script from being used
by others is to keep it to yourself. The mIRC script language is
meant to be, always has been and always will be, open source.

#170065 02/02/07 02:15 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Not unless you use a DLL that does something with the IP. However, if you don't want others using it, then don't give it out. Scripting is meant to be open source and free for all. Leave it that way.

Y
yetti
yetti
Y
i understand. thanks.

#170077 02/02/07 06:13 PM
Joined: Jan 2007
Posts: 1,155
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,155
What about the lock feature in mirc options? On start prompts you for a password. Ive never usedit, but it may do what you want.

DJ_Sol #170078 02/02/07 06:34 PM
I
ik000ike
ik000ike
I
that wont help him protect his scripts , they only need to go in the file and copy the addon's there , so password protect isn't for that.
password prompt is prevent other to use your script if you share a pc with others.

#170083 02/02/07 08:39 PM
Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
If you insist, you can obfuscate the script by removing all readable variables (%nick, %topic, etc) to %MO10Nl0M, etc, and doing the same thing with aliases, removing all comments, using { | }, and making the code do unnecisairy things:
Code:
%695876034765934754376342724263543534 = $41219344(%695876034765934754376342724263543534)
%695876034765934754376342724243543534 = $02413256(%695876034765934754376342724263543534)
%693876034765934754376342724243543534 = $24434367(%695876034765934754376342724243543534)
%695876034765934754376342724243543534 = $42131245(%693876034765934754376342724243543534)
%693876034765934754376342724243543534 = $53215435(%695876034765934754376342724263543534,%695876034765934754376342724243543534)
%695876034765934754376342724263543534 = $89516634(%695876034765934754376342724263543534,%693876034765934754376342724243543534)
...
alias -l 41219344 return $4566434($1)
alias -l 4566434 return $calc($1 + $4456634($1))
...


However, beware that a simple search and replace will defeat this, however it does look confusing.


Link Copied to Clipboard