mIRC Homepage
Posted By: kwell Help - 20/03/08 05:16 PM
A variable saves me a password, you can encrypt the variable so it can not be vizualizar At A Glance ?
Posted By: Lpfix5 Re: Help - 20/03/08 06:53 PM
In theory a variable can never be encrypted it can always be viewed. Weither you $encode your password it can always be viewed.

The only thing I can think that comes to mind is maybe making a small algorhitm with hash routine in your script but then again mIRC might not allow you to go that far unless you use a .dll
Posted By: 5618 Re: Help - 21/03/08 07:57 AM
Since you say "at a glance" you can just use:
Code:
set %var $encode(password,m)

For instance, that will encode the word "password" to "cGFzc3dvcmQ=", so people looking at it won't see what it says unless they do $decode(cGFzc3dvcmQ=,m)
Posted By: argv0 Re: Help - 21/03/08 08:31 AM
If you're the owner of the password then you can't do the following but if you're receiving passwords from users (as a bot) for comparison to a master password, you can $md5 or $crc the stored master value and then compare it to the respective $md5 or $crc of the input.

There's also $base(hello,36,20) and then to revert it do $base(<encodedvalue>,20,36) but this will only work if you use *case-insensitive* alphanumeric passwords (a-z and 0-9). The "20" can be pretty much any positive integer under 36, btw-- the further it is from 36 the more the password will change, but the bigger the resulting output string will be
Posted By: kwell Re: Help - 21/03/08 03:27 PM
Thank you, I was most helpful !!
Posted By: jaytea Re: Help - 21/03/08 03:50 PM
Originally Posted By: kwell
Thank you, I was most helpful !!


hey there's no need to rub it in
© mIRC Discussion Forums