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

Ruby: ask a password without echoing

require 'io/console'

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