1.0.9 • Published 8 months ago

quickpassword v1.0.9

Weekly downloads
3
License
WTFPL
Repository
github
Last release
8 months ago

A very very quick and dirty password encrypter using bcrypt based on this Stackoverflow Question

Updating node

If you update Node, you will need to run npm install in order to rebuild this module.

Comparison

const quickpassword = require('quickpassword');

quickpassword.comparePassword(input_string, encrypted_password_from_db, (err, isMatch) => {
    if (err) {
        console.log('Password Err');
    } else {
        if (isMatch) {
            // passwords Match
        } else {
            // passwords do not match
        }
    }
});

Generation (for storage)

const quickpassword = require('quickpassword');

quickpassword.cryptPassword(entry, (err, ret) => {
    if (err) {
        console.log('Failed');
    } else {
        // ret contains encrypted password for storage
    }
});

Upgrading node

If/when you upgrade node, this module (well bcrypt) will need to be recompiled, npm rebuild should get you going!

1.0.9

8 months ago

1.0.8

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago