mIRC Home    About    Download    Register    News    Help

Print Thread
#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?

yetti #170064 02/02/07 02:14 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
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.

yetti #170065 02/02/07 02:15 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
Joined: Dec 2006
Posts: 31
Y
yetti Offline OP
Ameglian cow
OP Offline
Ameglian cow
Y
Joined: Dec 2006
Posts: 31
i understand. thanks.

yetti #170077 02/02/07 06:13 PM
Joined: Jan 2007
Posts: 1,156
D
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.

DJ_Sol #170078 02/02/07 06:34 PM
Joined: Dec 2004
Posts: 87
I
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.

yetti #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.


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

Link Copied to Clipboard