Crate readpassphrase_3

Source

Structs§

RppFlags
Flags for controlling readpassphrase

Enums§

Error

Functions§

readpassphrase
Reads a passphrase using readpassphrase(3), returning it as a String. Internally uses a buffer of PASSWORD_LEN bytes, allowing for passwords up to PASSWORD_LEN - 1 characters (including the null terminator.)
readpassphrase_buf
Reads a passphrase using readpassphrase(3) into the passed buffer. Returns a String consisting of the same memory from the buffer, or else zeroes the buffer on error.