Skip to main content

SecretString

Type Alias SecretString 

Source
pub type SecretString = Zeroizing<String>;
Expand description

A password held in memory that is zeroized when dropped.

This is just zeroize::Zeroizing<String>, so it derefs to str for reading.

Aliased Typeยง

pub struct SecretString(/* private fields */);