conradkleinespel / rpassword

Cross platform Rust library to read a password in the terminal (Linux, BSD, OSX, Windows, WASM).
Apache License 2.0
244 stars 38 forks source link

Possible to show *'s when text entered in terminal #85

Closed aharpervc closed 11 months ago

aharpervc commented 11 months ago

Hello! When using this library to prompt for a password, eg like rpassword::prompt_password_stdout("Password: "), there's nothing shown on the terminal when text is entered.

Is it possible to have something like ***'s be shown instead? Then it will be more clear to the user they have entered some text.

Thanks!

conradkleinespel commented 11 months ago

Hi @aharpervc, I appreciate your question. It is not currently possible to do that. I'm not inclined to add code to support this because:

Feel free to fork the repo and implement this if you really need it though! If you do, please share your fork here, maybe at some point we can reconcile both repositories.

aharpervc commented 11 months ago

Okay thanks for the response... I'll think about it