Skip to content

feat: Implement traits from Rust Crypto#97

Open
sorairolake wants to merge 1 commit intoKeats:masterfrom
sorairolake:feature/rust-crypto-traits
Open

feat: Implement traits from Rust Crypto#97
sorairolake wants to merge 1 commit intoKeats:masterfrom
sorairolake:feature/rust-crypto-traits

Conversation

@sorairolake
Copy link
Contributor

This implements traits from the kdf crate and the password-hash crate, and the PasswordHash struct and the PasswordHashRef struct from the mcf crate.

These are implemented in crates such as argon2 and scrypt on https://github.com/RustCrypto/password-hashes, and this pull request will allow this crate to use the same API as these crates.

@sorairolake sorairolake force-pushed the feature/rust-crypto-traits branch from 5621739 to f918a0b Compare March 17, 2026 16:31
@Keats
Copy link
Owner

Keats commented Mar 18, 2026

Why do we need more than https://crates.io/crates/password-hash?

@tarcieri
Copy link

As the author of both crates, I would suggest password-hash over kdf, as bcrypt isn't a proper KDF due to its input and output size limitations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants