Personalisable library for TTY passphrase reading