mIRC Homepage
Posted By: NRJ Protect the Scripts - 11/03/03 06:41 PM
How can I close the treatment of scripts for other users?
I would like to protect my Scripts with a password. Is this possible somehow, without I close the reading access and writing access under Windows 2000 completely?

Greets, Mathias
Posted By: BlackAle Re: Protect the Scripts - 11/03/03 07:43 PM
Pretty much impossible to do, there are ways to make it more difficult for scripts to be viewed within mIRC itself, but at the end of the day it's simply a text file and can be viewed easily, there's nothing you can do about it.
Posted By: Doqnach Re: Protect the Scripts - 11/03/03 10:20 PM
like I saw some else post on a diverent part of the forum:

mIRC scripts are open source...


and I aggree! there is no way to protect a file from being changed at all... all you can do is make it hard for n00bies to do so... like an on *:LOAD: which checks the crc/md5 check on itself to see if changes were made to the file, if so delete and unload itself...
Posted By: NaquadaServ Re: Protect the Scripts - 12/03/03 11:09 PM
Code most of it as a .dll wink
Posted By: NRJ Re: Protect the Scripts - 13/03/03 01:45 PM
sorry, i can't code dll's frown
Posted By: lambroger Re: Protect the Scripts - 13/03/03 09:37 PM
you could embed your code in a hashtable and run time parse it out

you have to make your own routines for that, i'm not going to do it but i can be done.

you could also create your own encryption/decryption sequencer (which would be the visible part) and have it also runtime decrypt sections of code as it determines which module needs to be processed.

overall, your best bet is to use a dll method.

however, it really benefits the community if you just share your script. trust me when I say you probably haven't made anything someone else hasn't already made public anyways.
Posted By: Rooster74 Re: Protect the Scripts - 13/03/03 10:56 PM
I spent some time trying to figure something out like this. After a lot of time I realizing that there isnt any real efficient way to stop the borrowing of code without writting a dll. So I just started adding a few lines to the init of a dialog or something that would check to be sure it was apart of the script or the file would be unloaded and erased. But I only have that on two things, the mp3 player and a game query script which I spent a ton of time learning about and making. I figure if they are willing to pick it apart and remove the lines, they can have it. Besides there are a lot of similar scripts out there, I just like my layout better then anyone elses. grin

If you do find something that is fast, I would be interested in knowing for a few things that im working on.
Posted By: NRJ Re: Protect the Scripts - 14/03/03 09:03 PM
I have found a great script to protect the mIRC scripting editor:

http://www.scriptaz.com/archives.php?lan...&page=2

Search for LockEditor DLL v1.42b7

Greets, Mathias
Posted By: Rooster74 Re: Protect the Scripts - 14/03/03 10:06 PM
It still cant stop me from closing mirc and opening the file in notepad.
Posted By: NRJ Re: Protect the Scripts - 15/03/03 10:31 AM
of course, you can protect your script files in win2k (read protection). the script runs and you cannot read the script file. smile

greets, mathias
© mIRC Discussion Forums