A variable saves me a password, you can encrypt the variable so it can not be vizualizar At A Glance ?
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
Since you say "at a glance" you can just use:
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)
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
Thank you, I was most helpful !!
Thank you, I was most helpful !!
hey there's no need to rub it in