Cargo Features

[dependencies]
djangohashers = { version = "1.7.4", default-features = false, features = ["with_pbkdf2", "with_argon2", "with_scrypt", "with_bcrypt", "with_legacy", "fpbkdf2", "fuzzy_tests"] }
default = with_argon2, with_bcrypt, with_legacy, with_pbkdf2, with_scrypt

These default features are set whenever djangohashers is added without default-features = false somewhere in the dependency tree.

with_pbkdf2 default = base64, constant_time_eq, ring

Affects crypto_utils::hash_pbkdf2_sha256, crypto_utils::hash_pbkdf2_sha1, hashers::PBKDF2Hasher, hashers::PBKDF2SHA1Hasher, crypto_utils::hash_pbkdf2_sha256, crypto_utils::hash_pbkdf2_sha1, crypto_utils::safe_eq

with_argon2 default = base64, constant_time_eq, rust-argon2

Affects crypto_utils::hash_argon2, hashers::Argon2Hasher, crypto_utils::safe_eq

with_scrypt default = base64, constant_time_eq, scrypt

Affects crypto_utils::hash_scrypt, hashers::ScryptHasher, crypto_utils::safe_eq

with_bcrypt default = bcrypt, sha2

Affects crypto_utils::hash_sha256, hashers::BCryptSHA256Hasher, hashers::BCryptHasher

with_legacy default = constant_time_eq, hex_fmt, md-5, pwhash, sha-1

Affects crypto_utils::hash_sha1, crypto_utils::hash_md5, crypto_utils::hash_unix_crypt, hashers::SHA1Hasher, hashers::MD5Hasher, hashers::UnsaltedSHA1Hasher, hashers::UnsaltedMD5Hasher, hashers::CryptHasher, crypto_utils::safe_eq

fpbkdf2 = base64, constant_time_eq, fastpbkdf2

Affects crypto_utils::hash_pbkdf2_sha256, crypto_utils::hash_pbkdf2_sha1

fuzzy_tests

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

md-5 with_legacy
sha-1 with_legacy
sha2 with_bcrypt
ring with_pbkdf2
bcrypt with_bcrypt
base64 fpbkdf2? with_argon2 with_pbkdf2 with_scrypt
pwhash with_legacy
fastpbkdf2 fpbkdf2?
rust-argon2 with_argon2
scrypt with_scrypt
constant_time_eq fpbkdf2? with_argon2 with_legacy with_pbkdf2 with_scrypt
hex_fmt with_legacy