Crate readpassphrase_3

Source

Structs§

RppFlags
Flags for controlling readpassphrase

Enums§

Error

Constants§

PASSWORD_LEN

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. If the zeroize feature is enabled (which it is by default), memory is cleared on errors.
readpassphrase_inplace
Reads a passphrase using readpassphrase(3) info the passed buffer. Returns a string slice from that buffer.