4 releases (2 breaking)

0.3.0 Mar 2, 2020
0.2.2 Feb 28, 2020
0.1.4 Feb 28, 2020
0.1.3 Feb 28, 2020

#15 in #random-password

MIT license

7KB
77 lines

This is a command line tool to generate random password.

How to install

via crates.io (supports 32-bit & 64-bit Windows, Linux and MacOS)

  1. install Cargo if you haven't already done so.

brew install rust on MacOS will get you rustup and cargo

  1. run cargo install ayu

via downloading binary (supports 64-bit Linux and MacOS and 32-bit & 64-bit Windows)

  1. go to releases section of the repo and download the desired binary
  2. put the binary at your desired location and add the path/to/ayu to your $PATH variable in your .bashrc file

Basic usage

  • Run ayu -h to see all the information.
USAGE:
    ayu [FLAGS] [OPTIONS]

FLAGS:
    -N, --lowercase    Return password in LOWERCASE, invalid if used with UPPERCASE flag -U
    -U, --uppercase    Return password in UPPERCASE, invalid if used with LOWERCASE flag -N
    -h, --help         Prints help information
    -V, --version      Prints version information

OPTIONS:
    -C, --char <CHARSET>    [OPTIONAL] desired password CHARSET
                            Options include:
                            1) Alphanumeric + Special characters (default)
                            2) Alphanumeric
                            3) Alphabetic
                            4) Numberic

    -L, --len <LENGTH>      [OPTIONAL] desired password LENGTH (default: 18)
  • Example:
ayu

This command generates a random password of a length of 18 and it contains alphameric + special charset, which is the default charset.

ayu -L=20 -C=2 -U

This command generates a random password of a length of 20 and it contains uppercase alphameric.

Maintenance and Contribution

This tool is passively maintained. If you encountered an issue or have any suggestions, please submit here. Contributions are always welcome. :)

Dependencies

~1MB
~16K SLoC