I want to ask users to type in a password, but i dont want the chars to appear on screen as they type.
How do I do this in Ruby?
There is a gem for such user interaction: highline.
password = ask("Password: ") { |q| q.echo = false }
Or even:
password = ask("Password: ") { |q| q.echo = "*" }