Crate secstr

Source
Expand description

A data type suitable for storing sensitive information such as passwords and private keys in memory, featuring constant time equality, mlock and zeroing out.

Structs§

SecBox
A data type suitable for storing sensitive information such as passwords and private keys in memory, that implements:
SecUtf8
Wrapper for a vector that stores a valid UTF-8 string
SecVec
A data type suitable for storing sensitive information such as passwords and private keys in memory, that implements:

Traits§

NoPaddingBytes
Guarantees that there are no padding bytes in types implementing this trait.

Functions§

zero_out_secbox
Overwrite the contents with zeros. This is automatically done in the destructor.

Type Aliases§

SecStr
Type alias for a vector that stores just bytes