The command-line mode would not let you stop entering the password due to a bug in comparison of ASCII code to inputed character.
Merge pull request #1 from jasonparekh/master

Fix bug when inputing characters (io#getc returns a Fixnum for < 1.9, String otherwise).