New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

simple-password

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-password

Simple password hashing and verification.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
5
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

Password

Simple password hashing and verification.

Installation

`npm install simple-password

Usage

To create a password:

var password = require('simple-password');

password.create('batman', 10).then(hash => {
	// hash is a salted hash of 'batman'.
});

To verify a password:

var password = require('simple-password');

// hashed string of 'batman'.
var hashed = '$2a$10$7gE7dtP5u5Cs65QOKZ6WveKHF.UdX2of4J90987mBur8uHdReOgvy';

password.verify('batman', hashed).then(verified => {
	// verify is true|false.
});

Tests

Run npm test.

Keywords

password

FAQs

Package last updated on 09 May 2016

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