passcheck

todo

Usage no npm install needed!

<script type="module">
  import passcheck from 'https://cdn.skypack.dev/passcheck';
</script>

README

passcheck

Build Status NPM Version

a policy driven password strength checker

<npm|bower> install passcheck

api

var passcheck = require('./passcheck'); // -- nodejs. window.passcheck -- browser
passcheck.config.get()
  • returns the configuration
passcheck.config.set(options)
  • sets and overrides the default configuration
passcheck.eval('password')
  • returns results

http://ng-passcheck.azurewebsites.net/



var result = passcheck.eval('Password123!');

// { weak: false, medium: false, strong: true, score: 76.5 }

passcheck.config.set({
    common: {
        test: true,
        path: './passwords.json' // 10k common passwords
    }
});

var result = passcheck.eval('password');

// { weak: true, medium: false, strong: false, score: 0, common: true }