Skip to content

Modernization of secure input using Console - take two

Choose a tag to compare

@tanner0101 tanner0101 released this 16 Oct 15:20
7454e83
This patch was authored and released by @gwynne.

This is a rehash of #153 with improved compatibility and a better testing matrix.

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.