pub enum PasswordHash {
SSHA,
SHA,
SMD5,
MD5,
CRYPT,
CLEARTEXT,
}
openldap
only.Expand description
hash to be used in generation of user passwords.
Variants§
SSHA
PasswordHash::SHA
, but with a salt.
It is believed to be the most secure password storage scheme supported by slapd.
SHA
Like the MD5 scheme, this simply feeds the password through an SHA hash process.
SMD5
PasswordHash::MD5
, but with a salt.
Salt = Random data which means that there are many possible representations of a given plaintext password
MD5
Simply takes the MD5 hash of the password and stores it in base64 encoded form.
CRYPT
Uses the operating system’s crypt(3)
hash function.
It normally produces the traditional Unix-style 13 character hash, but on systems with glibc2
it can also generate the more secure 34-byte MD5
hash.
This scheme uses the operating system’s crypt(3)
hash function.
It is therefore operating system specific.
CLEARTEXT
stored as-is
Trait Implementations§
Source§impl Clone for PasswordHash
impl Clone for PasswordHash
Source§fn clone(&self) -> PasswordHash
fn clone(&self) -> PasswordHash
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PasswordHash
impl Debug for PasswordHash
Source§impl Default for PasswordHash
impl Default for PasswordHash
Source§fn default() -> PasswordHash
fn default() -> PasswordHash
Source§impl Display for PasswordHash
impl Display for PasswordHash
Source§impl FromStr for PasswordHash
impl FromStr for PasswordHash
Source§impl PartialEq for PasswordHash
impl PartialEq for PasswordHash
impl Copy for PasswordHash
impl Eq for PasswordHash
impl StructuralPartialEq for PasswordHash
Auto Trait Implementations§
impl Freeze for PasswordHash
impl RefUnwindSafe for PasswordHash
impl Send for PasswordHash
impl Sync for PasswordHash
impl Unpin for PasswordHash
impl UnwindSafe for PasswordHash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.