# @types/password-hash

> TypeScript definitions for password-hash

Latest version **1.2.24** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/password-hash
pnpm add @types/password-hash
yarn add @types/password-hash
bun add @types/password-hash
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.24 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/password-hash
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/password-hash
- npm.io page: https://npm.io/package/@types/password-hash

## Recent versions

- 1.2.24 (latest) — 2023-11-07
- 1.2.21 (ts3.8) — 2021-07-08
- 1.2.20 (ts2.1) — 2017-08-21
- 1.2.23 — 2023-10-18
- 1.2.22 — 2023-09-24
- 1.2.19 — 2016-09-19
- 1.2.18 — 2016-07-14
- 1.2.17-alpha — 2016-07-08
- 1.2.16-alpha — 2016-07-04
- 1.2.15-alpha — 2016-07-02
- 1.2.14-alpha — 2016-07-01
- 1.2.13-alpha — 2016-07-01
- 1.2.12-alpha — 2016-05-25
- 1.2.11-alpha — 2016-05-20
- 1.2.6-alpha — 2016-05-19
- … 1 more at https://npm.io/package/@types/password-hash/versions

## README

# Installation
> `npm install --save @types/password-hash`

# Summary
This package contains type definitions for password-hash (https://github.com/davidwood/node-password-hash).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/password-hash.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/password-hash/index.d.ts)
````ts
export declare function generate(password: string, options?: Options): string;
export declare function verify(password: string, hashedPassword: string): boolean;
export declare function isHashed(password: string): boolean;

export interface Options {
    algorithm?: string | undefined;
    saltLength?: number | undefined;
    iterations?: number | undefined;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [TANAKA Koichi](https://github.com/mugeso).

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