antirez/linenoise

Add a way to read passwords

Asmod4n opened this issue · 2 comments

Would be cool if linenoise could disable echoing etc so passwords aren't written to the ternimal.

OlliV commented

Reading passwords securely requires more than that. Usually you want to ensure no one else is reading the input and that you are really connected to a terminal etc.

The macOS Terminal has a special mode for that.
The bundled read -s (from bash or zsh) displays a "lock" icon. Same goes for getpass from unistd.h.

But when i copy that code the icon doesn't get displayed :/