password-worker 0.4.0

A wrapper for password hashing that can be used as shared state, and uses a rayon thread pool so it won't block the async runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![deny(missing_docs)]

mod hasher;
mod hasher_impls;
mod worker;

pub use hasher::Hasher;
pub use worker::{PasswordWorker, PasswordWorkerError};

#[cfg(feature = "bcrypt")]
pub use hasher_impls::bcrypt::{Bcrypt, BcryptConfig};

#[cfg(feature = "rust-argon2")]
pub use hasher_impls::argon2id::{Argon2id, Argon2idConfig};