GithubHelp home page GithubHelp logo

fredrikhl / passlib-cli Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 43 KB

Command line utility to make cryptstrings using passlib.

License: MIT License

Python 100.00%
cli passlib python password crypt passwd

passlib-cli's Introduction

passlib-cli

CLI-utils to simplify access to passlib crypt methods. It is glued together with twigs and scotch tape.

passlib-mkpasswd

Command line utility to make cryptstrings and password hashes using passlib.

passlib-mkpasswd -p ident=2a bcrypt

This command will ask you to input a password using getpass, and then output a cryptstring, e.g. $2a$12$VJ8.82W/yr9acK5.i5774Ovmvme6sEanXnfbf3JWYPfVegvX4kzR.

passlib-autocomplate

Generates autocomplete script for bash:

source <(passlib-autocomplete)

passlib-totp

Generates one time passwords from a TOTP shared secret, or an otpauth:// uri:

echo ABCDEFGHIJ234567 | passlib-totp
echo otpauth://totp/example.org:[email protected]?secret=ABCDEFGHIJ234567 | passlib-totp

Install

pip install <this-repo>

# Not required, but you should also…
pip install scrypt
pip install bcrypt
# … if you plan on using those backends

Usage

usage: passlib-mkpasswd [-h] [-v | -q]
                        [--version | --list-methods | --list-params |
                         --list-all | --show-params METHOD |
                         --show-docstring METHOD]
                         [-p PARAM=VALUE] [-s] [--no-verify] [METHOD]

Make password hashes and cryptstrings using passlib

options:
  -h, --help            show this help message and exit
  -v                    increase verbosity (debug output/logging)
  -q                    silent mode - disables logging/debug output

alternate actions:
  Options that change the default behaviour of this script. Each option here
  will cause the script to dump some info and exit.

  --version
      show program's version number and exit

  --list-methods
      list supported methods and exit

  --list-params
      list supported parameters and exit

  --list-all
      list all known methods and exit

  --show-params METHOD
      show supported parameters for METHOD and exit

  --show-docstring METHOD
      show docstring for a given implementation and exit

default action:
  The default behaviour is to ask for a password, and create a hash/cryptstring
  using the given METHOD.

  -p PARAM=VALUE, --param PARAM=VALUE
      set parameters, e.g.: `-p ident=2a` or `-p rounds=12` (use --list-params
      to see available)

  -s, --show-plaintext
      write the plaintext password to stdout

  --no-verify
      do not ask to verify password

  METHOD
      hash implementation (use --list-methods to see available)

passlib-cli's People

Contributors

fredrikhl avatar

Watchers

 avatar  avatar  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.