Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

netcore-passwords

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netcore-passwords

.NET Core compatible password hashing and verification

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

.NET Core passwords on Node.JS

This library provides Node.js compatibility with .NET Core Identity framework. If you're migrating a .NET Core application to Node.js, or if you need to share the same users database, this library is here to help.

Compatibility

This library is compatible ONLY with the Version 3 of the .NET Password Hasher, in it's default configuration.

PBKDF2 with HMAC-SHA256, 128-bit salt, 256-bit subkey, 10000 iterations.

Install

npm install netcore-passwords

Hash passwords

const p = require('netcore-passwords');

// Generate hash
const hash = p.hash('clearTextPassword');
console.log(hash);

// Save this hash into your users database

Verify passwords

const p = require('netcore-passwords');

const hash = ''; // Fetch this has from your users database;

// Verify
if (p.verify('clearTextPassword', hash)) {
    console.log("PASSWORD MATCH");
} else {
    console.log("PASSWORD DOESN'T MATCH");
}

Run test suite

npm test

License

MIT

FAQs

Package last updated on 01 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc