[][src]Function lib_wordpass::generate_password

pub fn generate_password(
    words: Vec<String>,
    min_letter_count: u8,
    min_word_count: u8,
    initial_capital: bool,
    use_caps: bool,
    use_spaces: bool
) -> String

Generate a password using words selected at random from the list of words. The resulting string will have at least min_letter_count letters (excluding spaces) and at least min_word_count words. If initial_capital is true, the first word will begin with a capital letter If use_caps is true, all words will begin with a capital letter. If use_spaces is true, words will be separated by spaces.