rsgen

rsgen is a tiny library and command line tool that generates random characters string(s).

Use as library

documentation in docs.rs LICENSE

Add the following to your Cargo.toml:

toml [dependencies] rsgen = "0.2"

Examaple

```rust use rsgen::{genrandomstring, OutputCharsType};

let outputcharstype = OutputCharsType::LatinAlphabetAndNumeric { useuppercase: true, uselowercase: true, }; let randomstring = genrandomstring(32, outputcharstype); ```

Install CLI tool

rsgen is written in Rust. Thus you should install the latest Rust ecosystem in advance.
refs. rustup

With cargo install

$ cargo install -f rsgen

Build from source code

$ git clone https://github.com/sadaie/rsgen.git $ cd rsgen $ cargo build --release $ ls target/release/ build deps examples incremental native rsgen rsgen.d

Usage

Generating a random characters string.

$ rsgen V05ZHhKa

Generating a specified-length rondom characters string.

$ rsgen -c 12 TpzjXxem3U5x

Generating a specified-length rondom characters string for ten times.

$ rsgen -c 12 -l 10 2S18UasnECKx xCLlTp4tZmn3 f9jsbGnSWZtB jFrPnstxHsr8 K9xZAK0R8KHH 85EXezRgeceo QOtY5BFwEZBl HBaFlCFN7t9W blOM7ZsviUBw XBDSOETSLzUR

Additional options

License

MIT lincense.