mIRC Homepage
Posted By: Dead6re Script File Encryption - 10/03/05 09:12 PM
I code mIRC files, and make bots that read and display things from log files. I would like to release my bot to the public so they could use it, but theres one thing stopping me.

mIRC doesn't support any file encryption of the scripts you can make. I would like to have the option in mIRC to "compile" your scripts so that cannot be changed. I often include a version command, and would not like it to be changed, but since i can encrypt the file, i have no means to do so.

So, I was wondering if mIRC could include file encryption in a later release.

Thanks, Dead6re
Posted By: mIRCManiac Re: Script File Encryption - 10/03/05 09:29 PM
Oh man, this subject has been debated to death.
Do a search for it and expand it to 5 years or whatever.
I totally disagree with this suggestion, mIRC scripting is
open source, and should remain exactly that. There is
one sure way for you to keep your scripts safe, do
not release them, keep them for yourself, simple as that.
Posted By: DaveC Re: Script File Encryption - 10/03/05 10:10 PM
In fact he could print them off, delete the electronic copy, and bury them in a shoe book in the back yard, And they would still be more likely to get used than if he encrypted them smile
Posted By: nalAAlan Re: Script File Encryption - 12/03/05 03:09 AM
The best way to prevent someone from ripping your code is to made it so hard to follow that the person can tell what you are doing, a good way to do that is to do something like this:
Code:
alias myalias {
  var %cats = 5,%dogs = 17,%birds = 2783
  while (%cats <= %birds) {
    myalias.cats %cats %dogs %birds
    inc %cats %dogs
  }
  var %birds = $calc(%cats * %dogs / %birds)
  echo -a %birds
}
alias myalias.cats {
  var %birds = $1,%cats = $2,%dogs = $3
  while (1 <= %dogs) {
    dec %dogs %birds
  }
  echo -a %dogs
}

That code was easy to read right? But if I do this it makes it nearly impossible to follow!
Code:
alias myalias {
  var %O000000OO0 = 5,%O000000O0O = 17,%0O0O0OO0O0 = 2783
  while (%O000000OO0 <= %0O0O0OO0O0) {
    O0000O00O0 %O000000OO0 %O000000O0O %0O0O0OO0O0
    inc %O000000OO0 %O000000O0O
  }
  var %0O0O0OO0O0 = $calc(%O000000OO0 * %O000000O0O / %0O0O0OO0O0)
  echo -a %0O0O0OO0O0
}
alias O0000O00O0 {
  var %0OOO00O0OO = $1,%0OO0OO00O0 = $2,%0O0O0O0OO0 = $3
  while (1 <= %0O0O0O0OO0) {
    dec %0O0O0O0OO0 %0OOO00O0OO 
  }
  echo -a %0O0O0O0OO0
}

Just be sure to do this _after_ you are done writing the script, and be sure to save an orginal copy. Oh yeah, don't be surprised if your scripts don't get submitted places if you do this, because it's a very lame thing to do.
Posted By: us3rX Re: Script File Encryption - 20/03/05 02:39 AM
You could always learn VB or C++ then make the script in that language, then release it, i have a few friends making their own irc client.

us3rX
© mIRC Discussion Forums