pub enum Algorithm {
    PBKDF2,
    PBKDF2SHA1,
    Argon2,
    Scrypt,
    BCryptSHA256,
    BCrypt,
    SHA1,
    MD5,
    UnsaltedSHA1,
    UnsaltedMD5,
    Crypt,
}
Expand description

Algorithms available to use with Hashers.

Variants

PBKDF2

PBKDF2 key-derivation function with the SHA256 hashing algorithm.

PBKDF2SHA1

PBKDF2 key-derivation function with the SHA1 hashing algorithm.

Argon2

Argon2 key-derivation function.

Scrypt

Scrypt key-derivation function.

BCryptSHA256

Bcrypt key-derivation function with the password padded with SHA256.

BCrypt

Bcrypt key-derivation function without password padding.

SHA1

SHA1 hashing function over the salted password.

MD5

MD5 hashing function over the salted password.

UnsaltedSHA1

SHA1 hashing function with no salting.

UnsaltedMD5

MD5 hashing function with no salting.

Crypt

UNIX’s crypt(3) hashing algorithm.

Trait Implementations

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.