Last Updated: September 09, 2019
·
1.261K
· jodosha

Ruby: ask a password without echoing

require 'io/console'

print "Please insert your password:"
STDIN.noecho(&:gets)