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

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

Traits

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

Functions

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

Type Aliases

  • Type alias for a vector that stores just bytes