0.0.1 • Published 11 years ago

sn-auth v0.0.1

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

sn-auth

Basic Authentication Middleware

Introduction

The sn-auth package provides a simple interface into the crypto.pbekdf2 function suitable for use with the sn-persist package. It provides a simplified interface to create a hashed password entry and to validate a password.

Installation

The simplest way to install the package is via npm:

Or via GIT:

Usage

To create a password entry, create a new instance of the pbkdf2 object, then call the generateSecret() function:

To validate a trial password, do this: