Skip to content
No description, website, or topics provided.
TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.npmignore
README.md
bcrypt.ts
index.ts
package.json
references.d.ts
tsconfig.json

README.md

nativescript-bcrypt.js

A nativescript plugin that integrate bcrypt.js plugin in order to hash, compare passwords...

Author

How to use it

import {bcrypt} from ('nativescript-bcryptjs');
let salt = bcrypt.genSaltSync(10);
let hash2 = bcrypt.hashSync("password", salt);
let hash = bcrypt.hashSync("password", 4);
let comp = bcrypt.compareSync("password", hash);
bcrypt.genSalt(10, (err, salt) => {
    bcrypt.hash("B4c0/\/", salt, (err, hash) => {
        bcrypt.compare("B4c0/\/", hash, function (err, res) {
        });
    });
});
You can’t perform that action at this time.