Skip to content

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

License

Notifications You must be signed in to change notification settings

Syncbak-Git/aspnet-identity-pw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aspnet-identity-pw

NPM version NPM downloads

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)

  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)

About

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

Resources

License

Stars

Watchers

Forks

Packages