{"id":15960507,"url":"https://github.com/sinuoslabs/nestjs-hasher","last_synced_at":"2025-10-17T00:22:43.850Z","repository":{"id":37055897,"uuid":"435405782","full_name":"sinuoslabs/nestjs-hasher","owner":"sinuoslabs","description":"NestJS library for hashing","archived":false,"fork":false,"pushed_at":"2025-01-09T19:24:33.000Z","size":4026,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-10T03:29:47.931Z","etag":null,"topics":["argon","bcrypt","hash","nest","nestjs","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/sinuoslabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["houssenedao"],"patreon":"houssenedao"}},"created_at":"2021-12-06T07:50:40.000Z","updated_at":"2025-01-09T19:24:26.000Z","dependencies_parsed_at":"2024-01-31T03:43:48.385Z","dependency_job_id":"f7b06018-f87a-43f0-9aae-56cc57d3e14f","html_url":"https://github.com/sinuoslabs/nestjs-hasher","commit_stats":{"total_commits":1182,"total_committers":4,"mean_commits":295.5,"dds":0.1700507614213198,"last_synced_commit":"06ce4b44a72cab9f27b77c5d86215f26c00a611e"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinuoslabs%2Fnestjs-hasher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinuoslabs%2Fnestjs-hasher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinuoslabs%2Fnestjs-hasher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinuoslabs%2Fnestjs-hasher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinuoslabs","download_url":"https://codeload.github.com/sinuoslabs/nestjs-hasher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243869341,"owners_count":20360999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["argon","bcrypt","hash","nest","nestjs","typescript"],"created_at":"2024-10-07T15:03:43.797Z","updated_at":"2025-10-17T00:22:38.821Z","avatar_url":"https://github.com/sinuoslabs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/houssenedao","https://patreon.com/houssenedao"],"categories":[],"sub_categories":[],"readme":"# Nestjs Hasher\n\nNestJS Hasher, is a module that combines several hash libraries into one such as _bcrypt_ and _argon_.\nYou can use them separately, without affecting anything. This library works only with the [NestJS](https://nestjs.com/) framework.\n\n## Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Bcrypt](#bcrypt)\n  - [Argon](#argon)\n  - [Available methods](#available-methods)\n- [Changelog](#changelog)\n- [Testing](#testing)\n- [Security](#security)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\n\nTo use the library you must execute the command below in your project.\n\n```bash\n$ npm install @sinuos/nestjs-hasher\n```\n\n## Usage\n\nTo use this library, you must declare the module in `AppModule`\n\n### Bcrypt\n\nThis integration works with this package [Bcrypt](https://www.npmjs.com/package/bcrypt)\n\n```typescript\nimport { Module } from '@nestjs/common';\nimport { NestjsHasherModule } from 'nestjs-hasher';\n\n@Module({\n  imports: [\n    NestjsHasherModule.register({\n      provider: 'bcrypt',\n      round: 10,\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\n\n### Argon\n\nThis integration works with this package [Argon](https://www.npmjs.com/package/argon2)\n\n```typescript\nimport { Module } from '@nestjs/common';\nimport { NestjsHasherModule } from 'nestjs-hasher';\n\n@Module({\n  imports: [\n    NestjsHasherModule.register({\n      provider: 'argon',\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\n### Service\n\n```typescript\nimport { Injectable } from '@nestjs/common';\nimport { NestjsHasherService } from '@sinuos/nestjs-haasher';\n\n@Injectable()\nexport class AppService {\n    constructor(private readonly service: NestjsHasherService) { }\n}\n```\n\n### Available methods\n\n#### Hash\n\n`hash(plainText)` to hash a string\n\n### Check\n\n`check(plainText, hashedValue)` to check if hashed value matched with your string\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n```bash\n$ npm run test\n```\n\n## Security\n\nIf you discover any security related issues, please email dao.houssene@gmail.com instead of using the issue tracker.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinuoslabs%2Fnestjs-hasher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinuoslabs%2Fnestjs-hasher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinuoslabs%2Fnestjs-hasher/lists"}