Modernization of secure input using Console
This patch was authored and released by @gwynne.
getpass()
is very, very old, and deprecated everywhere it exists. This PR switches to readpassphrase()
on macOS, provides a (incomplete but sufficient) re-implementation of readpassphrase()
based on that of libbsd
for Linux, and adds an implementation for Windows using the conio
interface.