I am new to ruby. I need to receive password as an input through gets
command.
How do I hide the password input typed in the terminal, during gets
call
I am new to ruby. I need to receive password as an input through gets
command.
How do I hide the password input typed in the terminal, during gets
call
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