/getpass

comand line password input gem

Primary LanguageRubyMIT LicenseMIT

Ruby getpass

Get passwords on the command line and see *s.

Example

require 'getpass'
include Getpass

print 'Username: '
username = gets.chomp
print 'Password: '
password = getpass

# or

password = getpass :prompt => 'Password: '

Author

Licence

MIT License. See the included LICENCE file.