libpassphrase

Description: Personalisable library for TTY passphrase reading
Status: Feature complete
Source: https://git.maandree.se/libpassphrase
Latest release: 1.2
License: ISC License (Internet Systems Consortium license)
Written in: C (ISO C99)

libpassphrase gives console applications an alternative to disabling echoing and reading non-canonical input. The library provides a simple password reading function that implements whatever look the user has programmed into it, it could be, for example, as simple the traditional anechoic behaviour, or the more GUI-style asterisks or bullts, or even my personal faviour just a text saying if the input is empty or non-empty. The staight forward and small API makes it simple to replace the library entirely and implement the behaviour your want so see. libpassphrase even supports password strength indicator for applications that let the user enter new passwords.