Make `hash_password` accept password input from stdin.