<commit_before># Passport-Local-Authenticate
Encapsulates methods used to hash and verify user credentials for use in a passport-local strategy. This simplifies building username and password login with [Passport](http://passportjs.org).

[![Build Status](https://travis-ci.org/saintedlama/passport-local-authenticate.png?branch=master)](https://travis-ci.org/saintedlama/passport-local-authenticate)
[![Coverage Status](https://coveralls.io/repos/saintedlama/passport-local-authenticate/badge.png?branch=master)](https://coveralls.io/r/saintedlama/passport-local-authenticate?branch=master)


## Installation

    $ npm install passport-local-authenticate --save

## Usage

    var auth = require('passport-local-authenticate');

    auth.hash('password', function(err, hashed) {
      console.log(hashed.hash); // Hashed password
      console.log(hashed.salt); // Salt
    });

    auth.hash('password', function(err, hashed) {
      auth.verify('password', hashed, function(err, verified) {
        console.log(verified); // True, passwords match
      ));<commit_msg>Remove newline to trigger travis build<commit_after># Passport-Local-Authenticate
Encapsulates methods used to hash and verify user credentials for use in a passport-local strategy. This simplifies building username and password login with [Passport](http://passportjs.org).

[![Build Status](https://travis-ci.org/saintedlama/passport-local-authenticate.png?branch=master)](https://travis-ci.org/saintedlama/passport-local-authenticate)
[![Coverage Status](https://coveralls.io/repos/saintedlama/passport-local-authenticate/badge.png?branch=master)](https://coveralls.io/r/saintedlama/passport-local-authenticate?branch=master)

## Installation

    $ npm install passport-local-authenticate --save

## Usage

    var auth = require('passport-local-authenticate');

    auth.hash('password', function(err, hashed) {
      console.log(hashed.hash); // Hashed password
      console.log(hashed.salt); // Salt
    });

    auth.hash('password', function(err, hashed) {
      auth.verify('password', hashed, function(err, verified) {
        console.log(verified); // True, passwords match
      ));
{'fraction_non_alphanumeric': 0.14022140221402213, 'fraction_numerical': 0.0, 'mean_word_length': 4.5758354755784065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '156060', 'n_tokens_mistral': 679, 'n_tokens_neox': 641, 'n_words': 121}