Get passwords on the command line and see *
s.
require 'getpass'
include Getpass
print 'Username: '
username = gets.chomp
print 'Password: '
password = getpass
# or
password = getpass :prompt => 'Password: '
MIT License. See the included LICENCE file.