//! # *genpwd* - a Rust command line program //! This program generates a randomized password from character classes.
//! The minmum length of generated passwords is 10.
//! Character classes are \[a-z\], \[A-Z\], \[0-9\] and special sign \!"$%&/?\\\(\)\{\}\[\]\+\*~#'<>|,;\.:\-_. //! //! ## Information //! * **Version:** 0.2.0 //! * **Documentation:** generated documentation //! * **Supported OS:** Linux, Windows //! * **Contact:** "Olaf Brozio" <obr.rs@gmx.de> //! //! ## Rust version //! Minimum version is 1.54; see: [clap](https://github.com/clap-rs/clap#Aspirations), [rand](https://github.com/rust-random/rand#rust-version-requirements) //! //! ## Dependencies //! * [clap](https://crates.io/crates/clap) - Minimum version is 2.34.0 //! * [rand](https://crates.io/search?q=rand) - Minimum Version is 0.8.4 //! //! ## Usage //!
genpwd [OPTIONS]
//!
//! FLAGS:รครถ
//!    -h, --help                  Prints help information
//!    -V, --version               Prints version information
//! OPTIONS: //! -l, --length Minimal length of password [minimum: 10] [default: 12] //! -o, --occurrence Minimal occurrence of each character class [default: 2] //!
//! ## Examples //!
>genpwd
//! 9hL]0z.G&r-O
//! 
//!
>genpwd -o 4
//! z16N\6'8NkvyXK(<
//! 
//!
>genpwd -l 20
//! 5X,qN~f02143c-2q6>]1
//! 
//!
>genpwd -o 3 -l 14
//! *;4!7c0KHLdc:i
//! 
//! //! ## License //! **genpwd** is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
//! See the [LICENSE-APACHE](../../../LICENSE-APACHE) and [LICENSE-MIT](../../../LICENSE-MIT) files in this repository for more information. //! //! ## Changes for version 0.2.0 //! * README.md / documentation //! * Help message uses parentheses instead of sqare brackets. //! * Version of dependency **clap** is "^2.34.0". //! * Version of dependency **rand** "^0.8.4". //! extern crate clap; mod config; mod password; use config::Minimum; use password::generate; #[doc(hidden)] fn main() { let minimum = Minimum::new(); println!("{}", generate(&minimum)); }