Function lesspass::generate_salt_to[][src]

pub fn generate_salt_to(
    website: &str,
    username: &str,
    counter: u32,
    output: &mut [u8]
) -> Result<usize, usize>
Expand description

Generates the salt needed to compute the entropy using a combinaison of the target website, login and counters, and writes it to output.

Returns Ok(written_size) if output is large enough, and Err(required_size) if it isn’t (in which case nothing will be written).