Struct tor_hash_passwd::EncryptedKey [−][src]
pub struct EncryptedKey { /* fields omitted */ }
Expand description
A representation of a Tor hashed pssword. See the module docs for more details and examples.
Implementations
Generate a hashed password using the given secret password. The result is random because the algorithm uses an 8-byte random salt.
Generate a hashed password using the given secret password and the supplied salt. The result is deterministic.
Checks to see if the given password matches this hashed password
Returns the salt portion of the hashed password
Returns the hash portion of the hashed password
Tries to create an EncryptedKey
instance from the string-like reference.