# @adonisjs/hash

> Framework agnostic Password hashing package with support for PHC string format

Latest version **10.1.1** (published 2026-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @adonisjs/hash
pnpm add @adonisjs/hash
yarn add @adonisjs/hash
bun add @adonisjs/hash
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.1.1 |
| Published | 2026-08-09 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.6.0 |
| Dependencies | 2 |
| Unpacked size | 66.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 24 |
| Author | Harminder Virk |
| Maintainers | romainlanz, virk, julien-r44 |
| Keywords | hash, bcrypt, argon2 |

## Links

- npm: https://www.npmjs.com/package/@adonisjs/hash
- Repository: https://github.com/adonisjs/hash
- Homepage: https://github.com/adonisjs/hash#readme
- Issues: https://github.com/adonisjs/hash/issues
- npm.io page: https://npm.io/package/@adonisjs/hash

## Dependencies (2)

- [@phc/format](https://npm.io/package/@phc/format.md) ^1.0.0
- [@poppinss/utils](https://npm.io/package/@poppinss/utils.md) ^7.0.1

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 10.1.1 (latest) — 2026-08-09
- 10.0.0-next.2 (next) — 2025-12-15
- 10.1.0 — 2026-03-23
- 10.0.0 — 2026-02-25
- 10.0.0-next.1 — 2025-08-29
- 10.0.0-next.0 — 2025-08-15
- 9.1.1 — 2025-05-14
- 9.1.0 — 2025-05-14
- 9.0.5 — 2024-09-21
- 9.0.4 — 2024-09-03
- 9.0.3 — 2024-04-22
- 9.0.2 — 2024-03-30
- 9.0.1 — 2024-01-23
- 9.0.0 — 2024-01-06
- 8.3.1-9 — 2023-12-19
- … 56 more at https://npm.io/package/@adonisjs/hash/versions

## README

# @adonisjs/hash

<br />

[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url]

## Introduction
AdonisJS hash is a driver based hashing library. We ship with `argon2`, `bcrypt` and `scrypt` drivers. The generated hash from all the drivers are formatted using the [PHC string format](https://github.com/P-H-C/phc-string-format/blob/master/phc-sf-spec.md)

## Official Documentation
The documentation is available on the [AdonisJS website](https://docs.adonisjs.com/guides/security/hashing)

## Contributing
One of the primary goals of AdonisJS is to have a vibrant community of users and contributors who believes in the principles of the framework.

We encourage you to read the [contribution guide](https://github.com/adonisjs/.github/blob/main/docs/CONTRIBUTING.md) before contributing to the framework.

## Code of Conduct
In order to ensure that the AdonisJS community is welcoming to all, please review and abide by the [Code of Conduct](https://github.com/adonisjs/.github/blob/main/docs/CODE_OF_CONDUCT.md).

## License
AdonisJS hash is open-sourced software licensed under the [MIT license](LICENSE.md).

[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/adonisjs/hash/checks.yml?style=for-the-badge
[gh-workflow-url]: https://github.com/adonisjs/hash/actions/workflows/checks.yml "Github action"

[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
[typescript-url]:  "typescript"

[npm-image]: https://img.shields.io/npm/v/@adonisjs/hash.svg?style=for-the-badge&logo=npm
[npm-url]: https://npmjs.org/package/@adonisjs/hash "npm"

[license-image]: https://img.shields.io/npm/l/@adonisjs/hash?color=blueviolet&style=for-the-badge
[license-url]: LICENSE.md "license"

---
_Source: https://npm.io/package/@adonisjs/hash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
