
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
fastify-bcrypt
Advanced tools
A Bcrypt hash generator & checker
https://it.wikipedia.org/wiki/Bcrypt
$ npm i --save fastify-bcrypt
fastify.register(require('fastify-bcrypt'), {
saltWorkFactor: 12
})
fastify.bcrypt.hash('password')
.then(hash => fastify.bcrypt.compare('password', hash))
.then(match => console.log(match ? 'Matched!' : 'Not matched!'))
.catch(err => console.error(err.message))
// Matched!
| Name | Description |
|---|---|
saltWorkFactor | The salt work factor for the bcrypt algorithm. The default value is 10. |
| Name | Description |
|---|---|
hash (claim) [async] | Generate an hash of given claim. |
compare (claim, hash) [async] | Compare an hashed claim with hash. NOTE: they're not reversible! |
| Name | Description |
|---|---|
bcryptHash (claim) [async] | See hash. |
bcryptCompare (claim, hash) [async] | See compare. |
$ npm test
This project is kindly sponsored by:
Licensed under MIT
FAQs
A Bcrypt hash generator & checker
The npm package fastify-bcrypt receives a total of 1,219 weekly downloads. As such, fastify-bcrypt popularity was classified as popular.
We found that fastify-bcrypt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.