pub struct Argon2Impl {
pub params: Params,
}Expand description
Argon2 算法实现 Argon2 是一种内存硬化的密码哈希函数,被选为 Password Hashing Competition 的获胜者
Fields§
§params: ParamsArgon2 算法参数
Trait Implementations§
Source§impl Default for Argon2Impl
为 Argon2Impl 实现默认构造函数
impl Default for Argon2Impl
为 Argon2Impl 实现默认构造函数
Source§impl PasswordHasherImpl for Argon2Impl
为 Argon2Impl 实现 PasswordHasherImpl trait
impl PasswordHasherImpl for Argon2Impl
为 Argon2Impl 实现 PasswordHasherImpl trait
Source§fn hash_password(&self, password: &str) -> Result<String, PasswordError>
fn hash_password(&self, password: &str) -> Result<String, PasswordError>
Source§fn verify_password(
&self,
password: &str,
hashed: &str,
) -> Result<bool, PasswordError>
fn verify_password( &self, password: &str, hashed: &str, ) -> Result<bool, PasswordError>
Auto Trait Implementations§
impl Freeze for Argon2Impl
impl RefUnwindSafe for Argon2Impl
impl Send for Argon2Impl
impl Sync for Argon2Impl
impl Unpin for Argon2Impl
impl UnwindSafe for Argon2Impl
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