pub struct WorkOptions {
pub name: Option<String>,
pub iterations: Option<u32>,
pub salt: Option<Vec<u8>>,
pub hash: Option<String>,
pub length: Option<usize>,
pub encode: Option<String>,
}Expand description
Options for SEA.work()
Fields§
§name: Option<String>Algorithm name: “PBKDF2” (default) or “SHA-256” (when name starts with “sha”)
iterations: Option<u32>Number of iterations for PBKDF2 (default: 100000)
salt: Option<Vec<u8>>Salt for PBKDF2 (auto-generated if not provided)
hash: Option<String>Hash algorithm for PBKDF2 (default: SHA-256)
length: Option<usize>Output length in bits (default: 512 bits = 64 bytes)
encode: Option<String>Output encoding (default: “base64”)
Trait Implementations§
Source§impl Clone for WorkOptions
impl Clone for WorkOptions
Source§fn clone(&self) -> WorkOptions
fn clone(&self) -> WorkOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkOptions
impl Debug for WorkOptions
Auto Trait Implementations§
impl Freeze for WorkOptions
impl RefUnwindSafe for WorkOptions
impl Send for WorkOptions
impl Sync for WorkOptions
impl Unpin for WorkOptions
impl UnwindSafe for WorkOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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