Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ built-in name/password variables?

built-in name/password variables?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by SKYY   (28 posts)  Bio
Date Fri 04 Apr 2008 03:25 PM (UTC)

Amended on Fri 04 Apr 2008 03:27 PM (UTC) by SKYY

Message
Under World Properties->General->Connecting, there are fields for Name and Password (and Connect).

I do not like AutoConnect, but I would like to make an alias that sent this name field, and nicely-starred-out password field, to the MUD.

Beneath the Connect Text box, it says "You can use %name% or %password%, if you wish the name or password supplied above to be inserted." I don't think that applies to making aliases, but if there is some way I can use that, please let me know.

Right now, I'm putting all my passwords into un-hidden variables (!!) and using an alias "log" = "@ch;@pw". Can I use the %name% and %password% fields instead, somehow?
Top

Posted by StuDraKi   Germany  (17 posts)  Bio
Date Reply #1 on Fri 04 Apr 2008 04:43 PM (UTC)

Amended on Fri 04 Apr 2008 04:45 PM (UTC) by StuDraKi

Message
Any variable you are using is "open" (see world variables). You may use lua to encrypt/decrypt (but I don't know if there is something ready to use). Nevertheless, someone which may read your computer will find your encryption algorithm and file...

On the other hand your telnet connection to your mud is not encrypted, unless you are using a SSL tunnel (see homepage of your mud, there are some who provide a SSL connection). Without encryption of your connection it makes no sense to protect your password.
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #2 on Fri 04 Apr 2008 05:47 PM (UTC)
Message
It makes sense on a level of people wandering up to your computer and deleting your account. There have been several discussions about this on the forums in the past, but I honestly just do not store my password anywhere and have aliases set up to gag commands that require my password from getting displayed or stored in the command history. That and I lock my computer when I am away from it, even when no one is home but me... My roommate's cats may attempt to exact revenge for me not skritching them or for tripping over them or something.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Nick Gammon   Australia  (23,057 posts)  Bio   Forum Administrator
Date Reply #3 on Fri 04 Apr 2008 08:38 PM (UTC)
Message
Quote:

I do not like AutoConnect, but I would like to make an alias that sent this name field, and nicely-starred-out password field, to the MUD.


Those are internal variables, not in the normal variable window. However you can access them with GetAlphaOption provided you are not inside a plugin (for security reasons).

Here is an alias that will do what you want:


<aliases>
  <alias
   match="log"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>
SendNoEcho (GetAlphaOption ("player"))
SendNoEcho (GetAlphaOption ("password"))

Note "Name and password sent"
</send>
  </alias>
</aliases>


I should warn you that it isn't too hard for someone familiar with scripting to use similar scripts to display the password on the screen, so security isn't that great. However it should discourage a casual passer-by from seeing your password.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by SKYY   (28 posts)  Bio
Date Reply #4 on Sat 05 Apr 2008 02:21 AM (UTC)
Message
Nick, you're too freakin smart, I swear.

Thanks.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


17,084 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.