Giter VIP home page Giter VIP logo

nist-web-boilerplate's Introduction

NIST Password Validator

Overview

  • This application checks to see if a password is valid according to the following rules:
    • Passwords MUST:
      1. Have an 8 character minimum
      2. AT LEAST 64 character maximum
      3. Allow all ASCII characters and spaces (unicode optional)
      4. Not be a common password(pw.txt contains common passwords)
  • Test a password by typing it into the "Password" input field and clicking "Check". A message will appear either saying the password is valid or an error explaining why it is invalid.

Setup

  • To set up a local copy of this project, perform the following:

  • Clone the repo in your terminal:

git clone https://github.com/bschwartz10/nist-web-boilerplate.git
  • Navigate into the project:
cd nist-web-boilerplate
  • Install NPM Packages:
npm install
  • Ensure tests are passing:
npm test
  • Run Server:
node server.js
  • Open application in browser:
http://localhost:3000/

Libraries Used

  • Jest - Testing framework for Javascript

Discussion

  • I built a Validator javascript class to organize the functions that handle the logic for the password validator. My goal was to create numerous functions that each handled one part of the validation process. I then combined those functions into an 'execute' function that parses the result message to the user.

  • I chose Jest as my testing framework. I wrote unit tests to to cover the happy/sad paths for the Validator class.

  • I styled the page using flex-box and tried to replicate the color scheme of The Infatuation website as closely as I could.

nist-web-boilerplate's People

Contributors

bschwartz10 avatar buckhx avatar

Watchers

James Cloos 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.