Enum djangohashers::Algorithm
source · 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§
source§impl PartialEq for Algorithm
impl PartialEq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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
Mutably borrows from an owned value. Read more