{"id":21964405,"url":"https://github.com/beliven-it/fastify-bcrypt","last_synced_at":"2026-03-07T13:01:37.881Z","repository":{"id":46155925,"uuid":"271576459","full_name":"beliven-it/fastify-bcrypt","owner":"beliven-it","description":"A Bcrypt hash generator \u0026 checker","archived":false,"fork":false,"pushed_at":"2026-02-03T08:28:38.000Z","size":1418,"stargazers_count":13,"open_issues_count":5,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-02-03T21:25:47.136Z","etag":null,"topics":["auth","bcrypt","checker","fastify","generator","hash","js","nodejs","password"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beliven-it.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-11T15:05:14.000Z","updated_at":"2026-02-03T08:27:37.000Z","dependencies_parsed_at":"2024-03-23T22:26:23.614Z","dependency_job_id":"ce3f1bb7-ba3c-4331-bd83-8019d557d1ee","html_url":"https://github.com/beliven-it/fastify-bcrypt","commit_stats":{"total_commits":26,"total_committers":6,"mean_commits":4.333333333333333,"dds":0.5769230769230769,"last_synced_commit":"aadae93f8b43997134349612c8fb5e63d45a02c3"},"previous_names":["heply/fastify-bcrypt"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/beliven-it/fastify-bcrypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-bcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-bcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-bcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-bcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beliven-it","download_url":"https://codeload.github.com/beliven-it/fastify-bcrypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beliven-it%2Ffastify-bcrypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30214608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T12:15:00.571Z","status":"ssl_error","status_checked_at":"2026-03-07T12:15:00.217Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth","bcrypt","checker","fastify","generator","hash","js","nodejs","password"],"created_at":"2024-11-29T12:07:56.817Z","updated_at":"2026-03-07T13:01:37.832Z","avatar_url":"https://github.com/beliven-it.png","language":"JavaScript","readme":"# fastify-bcrypt\n\nA Bcrypt hash generator \u0026 checker\n\nhttps://it.wikipedia.org/wiki/Bcrypt\n\n[![Node.js CI](https://github.com/beliven-it/fastify-bcrypt/actions/workflows/.node.js.yml/badge.svg)](https://github.com/beliven-it/fastify-bcrypt/actions/workflows/.node.js.yml)\n\n## Install\n\n```bash\n$ npm i --save fastify-bcrypt\n```\n\n## Usage\n\n```js\nfastify.register(require('fastify-bcrypt'), {\n  saltWorkFactor: 12\n})\n\nfastify.bcrypt.hash('password')\n  .then(hash =\u003e fastify.bcrypt.compare('password', hash))\n  .then(match =\u003e console.log(match ? 'Matched!' : 'Not matched!'))\n  .catch(err =\u003e console.error(err.message))\n\n// Matched!\n```\n\n## Options\n\n| Name               | Description                                                                 |\n|--------------------|-----------------------------------------------------------------------------|\n| `saltWorkFactor`   | The salt work factor for the `bcrypt` algorithm. The default value is `10`. |\n\n## Methods\n\n| Name                            | Description                                |\n|---------------------------------|--------------------------------------------|\n| `hash (claim) [async]`          | Generate an hash of given `claim`.         |\n| `compare (claim, hash) [async]` | Compare an hashed `claim` with `hash`. **NOTE:** they're not reversible! |\n\n## Request\n\n| Name                                  | Description                          |\n|---------------------------------------|--------------------------------------|\n| `bcryptHash (claim) [async]`          | See `hash`.                          |\n| `bcryptCompare (claim, hash) [async]` | See `compare`.                       |\n\n## Test\n\n```bash\n$ npm test\n```\n\n## Acknowledgements\n\nThis project is kindly sponsored by:\n\n[![Beliven](https://assets.beliven.com/brand/logo_pos_color.svg)](https://www.beliven.com)\n\n## License\n\nLicensed under [MIT](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliven-it%2Ffastify-bcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeliven-it%2Ffastify-bcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliven-it%2Ffastify-bcrypt/lists"}