Consider using CONIN$ and CONOUT$ for reading passwords securely in WINDOWS #1138

Open
opened 2025-12-28 17:15:22 +00:00 by sami · 0 comments
Owner

Originally created by @notimetoname on GitHub (Jun 5, 2023).

There was a secure password reading for the *nix OSes via /dev/tty in https://github.com/nspcc-dev/neo-go/pull/2480. However, it still uses stdin and stdout for Windows.
I've also found info that it may be enhanced: https://nullprogram.com/blog/2020/05/04/. Not tested, not sure we need it, not a good Windows user, not sure it was always possible in all modern NT kernels but anyway, all the questions can be answered and a better Windows UX can be considered.

Originally created by @notimetoname on GitHub (Jun 5, 2023). There was a secure password reading for the `*nix` OSes via `/dev/tty` in https://github.com/nspcc-dev/neo-go/pull/2480. However, it still uses stdin and stdout for `Windows`. I've also found info that it _may_ be enhanced: https://nullprogram.com/blog/2020/05/04/. Not tested, not sure we need it, not a good `Windows` user, not sure it was always possible in all modern NT kernels but anyway, all the questions can be answered and a _better_ `Windows` UX can be considered.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neo-go#1138
No description provided.