Git Product home page Git Product logo

hibpcli's People

Contributors

denvera avatar donhege avatar eumiro avatar harryet avatar jugmac00 avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hibpcli's Issues

Create a dedicated CHANGELOG.md

  • extract "release history" from README.md
  • introduce a "unreleased" section at the top of the new CHANGELOG.md
  • introduce sub headings like
    -- added
    -- changed
    -- fixed

Enable single password testing

One should be able to check single password against the hibp API for being leaked or not.

Also see #17 for more information about the new interface.

mypy error since release of the new `click` version

tox: mypy
  mypy run-test-pre: PYTHONHASHSEED='3025488449'
  mypy run-test: commands[0] | mypy --strict src
  src/hibpcli/cli.py:10: error: Module has no attribute "group"; maybe "Group"?
  src/hibpcli/cli.py:10: error: Untyped decorator makes function "main" untyped
  src/hibpcli/cli.py:16: error: Module has no attribute "command"; maybe "Command"?
  src/hibpcli/cli.py:16: error: Untyped decorator makes function "check_keepass" untyped
  src/hibpcli/cli.py:17: error: Module has no attribute "argument"; maybe "Argument"?
  src/hibpcli/cli.py:17: error: Untyped decorator makes function "check_keepass" untyped
  src/hibpcli/cli.py:18: error: Module has no attribute "option"; maybe "Option"?
  src/hibpcli/cli.py:18: error: Untyped decorator makes function "check_keepass" untyped
  src/hibpcli/cli.py:22: error: Module has no attribute "prompt"
  src/hibpcli/cli.py:28: error: Module has no attribute "echo"; maybe "secho"?
  src/hibpcli/cli.py:30: error: Module has no attribute "echo"; maybe "secho"?
  src/hibpcli/cli.py:33: error: Module has no attribute "echo"; maybe "secho"?
  src/hibpcli/cli.py:34: error: Module has no attribute "echo"; maybe "secho"?
  src/hibpcli/cli.py:36: error: Module has no attribute "echo"; maybe "secho"?
  src/hibpcli/cli.py:39: error: Module has no attribute "command"; maybe "Command"?
  src/hibpcli/cli.py:39: error: Untyped decorator makes function "check_password" untyped
  src/hibpcli/cli.py:40: error: Module has no attribute "option"; maybe "Option"?
  src/hibpcli/cli.py:40: error: Untyped decorator makes function "check_password" untyped
  src/hibpcli/cli.py:44: error: Module has no attribute "prompt"
  src/hibpcli/cli.py:51: error: Module has no attribute "echo"; maybe "secho"?
  src/hibpcli/cli.py:54: error: Module has no attribute "echo"; maybe "secho"?
  src/hibpcli/cli.py:56: error: Module has no attribute "echo"; maybe "secho"?
  Found 22 errors in 1 file (checked 5 source files)
  ERROR: InvocationError for command /home/runner/work/hibpcli/hibpcli/.tox/mypy/bin/mypy --strict src (exited with code 1)

Catch file system errors

current behaviour
When the user enters a wrong path, a nasty traceback is returned to the user.

wished behaviour
When the user enters a wrong path, a decent error message is returned.

bonus
The user gets another prompt and has a chance to enter a correct path, again.

Interface design

Not only for graphical applications, but also for CLI applications a good interface is important.

I will collect ideas about how to desgin the interface, ie the commands, subcommands, arguments and options.

I'd be very happy if you share your ideas.

Current favorite design

  1. hibpcli keepass --password --password-only/--email-only
  • you are able to enter the password if you want - otherwise you get prompted for it
  • you can also provide an option so the keepass database only gets checked for leaked passwords, or only for leaked emails
  • defaults to both
  1. hibpcli password [password]
  • check a single password
  • if no password entered, you get a prompt
  • security implications:
    -- possibly password will be in the bash_history
    -- password will be visible when you type it
  1. hibpcli email [email]
  • check a single email
  • if no email entered, you get a prompt

The above checks will be tested against the online API - local checks will be added later.

Any thoughts?

Change the message if no leak found

The wording of messages “Hooray, everything is safe!” and “Your password is safe!” implies these passwords are safe. Actually they only have not been reported as unsafe until now.

How about: “Your password is probably safe.” or “This password has not been reported unsafe until now.” or let's find a better message in the discussion.

Catch network/API errors

current behaviour
When the hibp API is not available, the user gets a nasty traceback.

wished behaviour
When the hibp API is not available, the user gets a decent error message.

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.