mIRC Home    About    Download    Register    News    Help

Print Thread
protect a script #170063 02/02/07 02:06 PM
Joined: Dec 2006
Posts: 31
Y
yetti Offline OP
Ameglian cow
OP Offline
Ameglian cow
Y
Joined: Dec 2006
Posts: 31
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?

Re: protect a script [Re: yetti] #170064 02/02/07 02:14 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,010
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.

Re: protect a script [Re: yetti] #170065 02/02/07 02:15 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
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.


Invision Support
#Invision on irc.irchighway.net
Re: protect a script [Re: Riamus2] #170066 02/02/07 02:24 PM
Joined: Dec 2006
Posts: 31
Y
yetti Offline OP
Ameglian cow
OP Offline
Ameglian cow
Y
Joined: Dec 2006
Posts: 31
i understand. thanks.

Re: protect a script [Re: yetti] #170077 02/02/07 06:13 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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.

Re: protect a script [Re: DJ_Sol] #170078 02/02/07 06:34 PM
Joined: Dec 2004
Posts: 87
I
ik000ike Offline
Babel fish
Offline
Babel fish
I
Joined: Dec 2004
Posts: 87
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.

Re: protect a script [Re: yetti] #170083 02/02/07 08:39 PM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
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.


Those who can, cannot. Those who cannot, can.