Code Monkey home page Code Monkey logo

password_generator's Introduction

Password Generator(pwgn)

Install

$ cargo install --git https://github.com/hurou927/password_generator.git

Usage

Usage: password-generator [OPTIONS]

Options:
  -l <LENGTH>                        [default: 12]
  -a <LOWER_MIN_LENGTH>              [default: 1]
  -A <UPPER_MIN_LENGTH>              [default: 1]
  -s <SIMBOL_MIN_LENGTH>             [default: 1]
  -n <NUMBER_MIN_LENGTH>             [default: 1]
  -S, --symbol-chars <SIMBOL_CHARS>  [default: ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/]
  -N <NUM_PASSWORDS>                 [default: 1]
  -p, --preset <PRESET>              1: week password(half-width & number), otherwise: custom [default: 0]
  -h, --help                         Print help
  -V, --version                      Print version

Example

1.

❯ pwgn -l 20 -N 5 | jq .
{
  "version": "1.0.0",
  "passwords": [
    {
      "text": "9<-oBM\"f(jD}:{jTub2["
    },
    {
      "text": "k4:rjW[HNaY)x4>%r-WL"
    },
    {
      "text": "*ZN\\|[email protected]"
    },
    {
      "text": "l_;6YR^w+;@I9.BH0Fyd"
    },
    {
      "text": "=pjW{lK#5!m(S\\Q%4AjZ"
    }
  ]
}

2.

❯ pwgn -p 1 | jq '.passwords[0].text' -rj
pbn44rhmf9ub

password_generator's People

Contributors

hurou927 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.