Crate readpassphrase_3

Source
Expand description

This library endeavors to expose a thin wrapper around OpenBSD’s readpassphrase(3) function.

Three different interfaces are exposed; for most purposes, you will want to use either getpass (for simple password entry) or readpassphrase (when you need flags from readpassphrase(3) or need more control over the memory.)

The readpassphrase_owned function is a bit more niche; it may be used when you need a String output but need to pass flags or control the buffer size (vs getpass.)

Structs§

RppFlags
Flags for controlling readpassphrase

Enums§

Error

Constants§

PASSWORD_LEN

Functions§

getpass
Reads a passphrase using readpassphrase(3), returning it as a String.
readpassphrase
Reads a passphrase using readpassphrase(3).
readpassphrase_owned
Reads a passphrase using readpassphrase(3) using the passed buffer’s memory.