Giter Club home page Giter Club logo

password_validator's Introduction

password_validator - A CLI tool

password_validator is a CLI tool that validates your input of passwords(from STDIN in newline delimited format) against the following requirements per NIST guidelines:

  • 8 character minimum
  • 64 character maximum
  • All characters must be ASC-II characters
  • Not a common password

Prerequisites

  1. python3.6+ is in your $PATH 2 you have a common password text file, delimited by newline. Here is one example.
  2. (Optional) you have installed git

Installation

My the debian 9 in my chromebook doesn't let me run setuptools probably due to it's not a full-blown OS. So, we only have poor man's version now. ๐Ÿ˜‚

For now

# substitute ~ with whatever path you want to put this project to
cd ~
git clone https://github.com/cwyl02/password_validator.git

Or go to releases page and download the zip file and unpack it to the location you like.

TODO: make it available through pip

Usage

# Linux environment
cd password_validator
cat passwords.txt | ./password_validator/main.py <PATH_TO_COMMON_PASSWORD_FILE>

# Windows environment
# TODO

Run Testcases

cd passwod_validator 
python3 -mv unittest -v tests.test_validate

password_validator's People

Watchers

Weiyanli Chen(York) 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.