pub struct ScryptHasher;Expand description
The pinned Better Auth password format: hexadecimal salt and scrypt key.
Trait Implementations§
Source§impl Clone for ScryptHasher
impl Clone for ScryptHasher
Source§impl Debug for ScryptHasher
impl Debug for ScryptHasher
Source§impl Default for ScryptHasher
impl Default for ScryptHasher
Source§impl PasswordHasher for ScryptHasher
impl PasswordHasher for ScryptHasher
Source§fn hash<'life0, 'life1, 'async_trait>(
&'life0 self,
password: &'life1 str,
) -> Pin<Box<dyn Future<Output = AuthResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn hash<'life0, 'life1, 'async_trait>(
&'life0 self,
password: &'life1 str,
) -> Pin<Box<dyn Future<Output = AuthResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Hash a plaintext password and return the hash string.
Source§fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
hash: &'life1 str,
password: &'life2 str,
) -> Pin<Box<dyn Future<Output = AuthResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
hash: &'life1 str,
password: &'life2 str,
) -> Pin<Box<dyn Future<Output = AuthResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Verify a password against a hash string. Returns
true if the password matches.Auto Trait Implementations§
impl Freeze for ScryptHasher
impl RefUnwindSafe for ScryptHasher
impl Send for ScryptHasher
impl Sync for ScryptHasher
impl Unpin for ScryptHasher
impl UnsafeUnpin for ScryptHasher
impl UnwindSafe for ScryptHasher
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