aspnet-identity-pw

Utility for hashing and validating passwords using the default ASP.NET Identity password hash algorithm.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
aspnet-identity-pw
621.0.26 years ago8 years agoMinified + gzip package size for aspnet-identity-pw in KB

Readme

aspnet-identity-pw
Node.js package for hashing and validating passwords using the default ASP.NET Identity password hash algorithm.

Installation

npm install aspnet-identity-pw

Usage (Sync)

var passwordHasher = require('aspnet-identity-pw');

var hashedPassword = passwordHasher.hashPassword('SomePassword');

var isValid = passwordHasher.validatePassword('SomePassword', hashedPassword);
```

## Usage (Async)
```javascript
var passwordHasher = require('aspnet-identity-pw');
var hashedPassword = null;
var isValid = null;

passwordHasher.hashPassword('SomePassword', function(err, result) {
  hashedPassword = result;
});

passwordHasher.validatePassword('SomePassword', hashedPassword, function(err, result) {
  isValid = result;
});

Tests

npm test

Release History

  • 1.0.0 Initial release
  • 1.0.1 Updated deasync package
  • 1.0.2 Fixed crypto.pbkdf2 deprecation warning (requires node >= 0.12.0)