I am new to ruby. I need to receive password as an input through gets command.
gets
How do I hide the password input typed in the terminal, during gets
There is a library called highline which works like this:
require 'rubygems' require 'highline/import' password = ask("Enter password: ") { |q| q.echo = false } # do stuff with password