[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Masked input

Masked input

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page


Posted by Fearless   (7 posts)  [Biography] bio
Date Tue 14 May 2024 01:20 AM (UTC)
Message
This is a LUA alias for a (mostly) masked input prompt. The text will be sent to the server and it will not show in the command history.

If Webdings size 4 isn't visibly obfuscated enough for you, then either 1: make the box smaller (box_height) so that the input field is not visible at all, or 2: get a password font, like this: https://github.com/davidagraf/passwd/blob/master/public/ttf/password.ttf (I am not affiliated. Beware of license trolls.)

<aliases>
  <alias
   match="pw"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>pw = utils.inputbox(
  "Type password:", "", "", "Webdings", 4,
  {box_width=180, box_height=270}
)
pw = pw or ""
if pw ~= "" then Send(pw) end</send>
  </alias>
</aliases>
[Go to top] top

Posted by Fiendish   USA  (2,519 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Tue 14 May 2024 05:27 PM (UTC)

Amended on Tue 14 May 2024 05:28 PM (UTC) by Fiendish

Message
Very nice. You should probably use SendNoEcho instead of Send.

https://www.mushclient.com/scripts/doc.php?function=SendNoEcho

https://github.com/fiendish/aardwolfclientpackage
[Go to top] 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.


116 views.

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]