Skip to content

Instantly share code, notes, and snippets.

@inohiro
Created May 14, 2012 07:33
Show Gist options
  • Save inohiro/2692479 to your computer and use it in GitHub Desktop.
Save inohiro/2692479 to your computer and use it in GitHub Desktop.
require 'highline'
def main
highline = HighLine.new
passwd = highline.ask( 'type your password: ' ) do |q|
q.echo = '*'
end
puts passwd
end
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment