Simple Password Protection!

By PoiXon on Dec 29, 2004

This Just protects your mIRC from anyone using it

right click in the nicklist section and go on password protection then click on then enter a password , then when you start your mIRC up again it will ask for a password !

menu nicklist,status,channel {
  -
  Password Protection
  .on { pass.on }
  .off { pass.off }
}
alias pass.on {
  :begin
  set %password $?*="Enter Your Password"
  if ($len(%password) < 5) { goto invalid }
  else { set %g-password on | echo -a Password Protection is now on! | halt }
  :invalid
  set %try-again $?!="INVALID. password must have 5 or more characters do you want to try again?"
  if (%try-again == $true) { goto begin }
}
alias pass.off {
  if (%g-password == on) {
    unset %g-password
    unset %password
  echo -a Password Protection is now off! }
  else { echo -a Password Protection is not on! }
}
on *:start: {
  if (%g-password == on) {
    set %trying $?*="Enter Password"
    if (%trying == $null) || (%trying != %password) { exit }
    elseif (%trying == %password) { echo -a Correct Password! }
  }
}

Comments

Sign in to comment.
Yoinx   -  Dec 29, 2004

yeah you can also set ti in the options for an on start passwrod adisable ctcps dccs etc, regardless though, for a scripting project its not bad.

 Respond  
LIQUID_NiTrO   -  Dec 29, 2004

Yeah, for those that don\'t know pressing CTRL and clicking the minimize button on mIRC will password protect it so that you have to give the password to maximize it.

 Respond  
X-FILE   -  Dec 29, 2004

I see this useless since mIRC has it\'s own protection. And it is much more secure.

 Respond  
Yoinx   -  Dec 29, 2004

Good idea, And it works. but instead of storing the password as plain text in the variables. I\'d do this. use * $md5($?=\"Enter Your Password\") ** everywhere you have the enter your password dialog. That way peopel cant decrypt your pass... If you\'re really worried about security.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.