Struct scrypt::Scrypt [−][src]
pub struct Scrypt;
This is supported on crate feature
simple
only.scrypt type for use with PasswordHasher
.
Trait Implementations
impl McfHasher for Scrypt
[src]
impl McfHasher for Scrypt
[src]fn upgrade_mcf_hash<'a>(&self, hash: &'a str) -> Result<PasswordHash<'a>>
[src]
pub fn verify_mcf_hash(
&self,
password: &[u8],
mcf_hash: &str
) -> Result<(), Error> where
Self: PasswordVerifier,
[src]
&self,
password: &[u8],
mcf_hash: &str
) -> Result<(), Error> where
Self: PasswordVerifier,
impl PasswordHasher for Scrypt
[src]
impl PasswordHasher for Scrypt
[src]type Params = Params
Algorithm-specific parameters.
fn hash_password<'a>(
&self,
password: &[u8],
alg_id: Option<Ident<'a>>,
params: Params,
salt: impl Into<Salt<'a>>
) -> Result<PasswordHash<'a>>
[src]
&self,
password: &[u8],
alg_id: Option<Ident<'a>>,
params: Params,
salt: impl Into<Salt<'a>>
) -> Result<PasswordHash<'a>>
pub fn hash_password_simple<S>(
&self,
password: &[u8],
salt: &'a S
) -> Result<PasswordHash<'a>, Error> where
S: AsRef<str> + ?Sized,
[src]
&self,
password: &[u8],
salt: &'a S
) -> Result<PasswordHash<'a>, Error> where
S: AsRef<str> + ?Sized,
impl StructuralEq for Scrypt
[src]
impl StructuralEq for Scrypt
[src]impl StructuralPartialEq for Scrypt
[src]
impl StructuralPartialEq for Scrypt
[src]Auto Trait Implementations
impl RefUnwindSafe for Scrypt
impl RefUnwindSafe for Scrypt
impl UnwindSafe for Scrypt
impl UnwindSafe for Scrypt
Blanket Implementations
impl<T> PasswordVerifier for T where
T: PasswordHasher,
[src]
impl<T> PasswordVerifier for T where
T: PasswordHasher,
[src]pub fn verify_password(
&self,
password: &[u8],
hash: &PasswordHash<'_>
) -> Result<(), Error>
[src]
&self,
password: &[u8],
hash: &PasswordHash<'_>
) -> Result<(), Error>
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self