From e697cfa533e0c54553b270e5abc943e3c3740c53 Mon Sep 17 00:00:00 2001 From: Nathan Winch Date: Sun, 15 May 2016 15:38:41 +1000 Subject: [PATCH 1/2] Use bcryptjs --- index.js | 2 +- package.json | 2 +- test/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 2983ecd..eda3ce2 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -var bcrypt = require('bcrypt'); +var bcrypt = require('bcryptjs'); exports.create = function(pass, salt) { return new Promise((resolve, reject) => { diff --git a/package.json b/package.json index b7111ea..a01ce9d 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://github.com/Prismatik/simple-password", "dependencies": { - "bcrypt": "^0.8.5" + "bcryptjs": "^2.3.0" }, "devDependencies": { "tap-spec": "^4.1.0", diff --git a/test/index.js b/test/index.js index 6f704ab..d91ea30 100644 --- a/test/index.js +++ b/test/index.js @@ -1,4 +1,4 @@ -var bcrypt = require('bcrypt'); +var bcrypt = require('bcryptjs'); var test = require('tape'); var tapSpec = require('tap-spec'); var password = require('../index'); From 59c025116e47a4d8e79ac4dc09b2326e08a9b732 Mon Sep 17 00:00:00 2001 From: Nathan Winch Date: Sun, 15 May 2016 15:42:04 +1000 Subject: [PATCH 2/2] Update typos --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d083fea..8643749 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -[![Build Status](https://travis-ci.org/Prismatik/password.svg)](https://travis-ci.org/Prismatik/simple-password) +[![Build Status](https://travis-ci.org/Prismatik/simple-password.svg)](https://travis-ci.org/Prismatik/simple-password) -# Password +# Simple Password Simple password hashing and verification. ## Installation -`npm install simple-password +`npm install simple-password` ## Usage